Remove proxy entry from hash table always

Otherwise it looked like we were leaking proxies when we really weren't.
This commit is contained in:
David Benjamin 2011-04-20 11:55:44 -04:00
parent e1c01801fb
commit b96edf97d9
1 changed files with 1 additions and 1 deletions

View File

@ -184,8 +184,8 @@ void npobject_destroy_proxy(NPObject *npobj, bool release_stub)
assert(proxy != NULL);
if (release_stub && proxy->is_valid) {
npclass_invoke_Deallocate(proxy);
g_hash_table_remove(g_proxies, GINT_TO_POINTER(proxy->id));
}
g_hash_table_remove(g_proxies, GINT_TO_POINTER(proxy->id));
free(npobj);
D(bugiD("npobject_destroy_proxy done\n"));
}