fix yet another small glitch

This commit is contained in:
Tim Janik 1999-01-17 05:05:08 +00:00
parent 37f659ec11
commit 5f52b321cc
2 changed files with 8 additions and 2 deletions

View File

@ -133,7 +133,10 @@ g_hook_destroy_link (GHookList *hook_list,
if (hook_list->hook_destroy)
hook_list->hook_destroy (hook_list, hook);
else if (hook->destroy)
hook->destroy (hook->data);
{
hook->destroy (hook->data);
hook->destroy = NULL;
}
g_hook_unref (hook_list, hook); /* counterpart to g_hook_insert_before */
}
}

View File

@ -133,7 +133,10 @@ g_hook_destroy_link (GHookList *hook_list,
if (hook_list->hook_destroy)
hook_list->hook_destroy (hook_list, hook);
else if (hook->destroy)
hook->destroy (hook->data);
{
hook->destroy (hook->data);
hook->destroy = NULL;
}
g_hook_unref (hook_list, hook); /* counterpart to g_hook_insert_before */
}
}