From 0e75b585f69368f735d42f682370597239b532e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Wed, 20 Sep 2023 10:05:39 +0200 Subject: [PATCH] [WIP] Fix HashTable value destroy config --- gum/gumswiftapiresolver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gum/gumswiftapiresolver.c b/gum/gumswiftapiresolver.c index 0949bfb63..676256540 100644 --- a/gum/gumswiftapiresolver.c +++ b/gum/gumswiftapiresolver.c @@ -367,8 +367,8 @@ gum_swift_api_resolver_init (GumSwiftApiResolver * self) module->path = d->path; module->base_address = d->range->base_address; module->functions = NULL; - module->vtables = - g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); + module->vtables = g_hash_table_new_full (g_str_hash, g_str_equal, + g_free, (GDestroyNotify) g_ptr_array_unref); module->resolver = self; g_hash_table_insert (self->module_by_name, g_strdup (module->name), module);