rename uc_context_free() to uc_mem_free(). see #373

This commit is contained in:
Nguyen Anh Quynh
2017-01-09 20:52:14 +08:00
parent af165d254c
commit fdbbdc6216
11 changed files with 27 additions and 25 deletions

View File

@ -746,7 +746,7 @@ JNIEXPORT jlong JNICALL Java_unicorn_Unicorn_context_1alloc
*/
JNIEXPORT void JNICALL Java_unicorn_Unicorn_context_1free
(JNIEnv *env, jobject self, jlong ctx) {
uc_err err = uc_context_free((uc_context*)ctx);
uc_err err = uc_mem_free((void *)ctx);
if (err != UC_ERR_OK) {
throwException(env, err);
}