Skip to content

Commit

Permalink
[WIP] Fix HashTable value destroy config
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Sep 20, 2023
1 parent ea702e3 commit 0e75b58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gum/gumswiftapiresolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0e75b58

Please sign in to comment.