diff options
author | Tim Janik <timj@src.gnome.org> | 1999-01-17 05:05:08 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1999-01-17 05:05:08 +0000 |
commit | 5f52b321cc919e0eb5e2e70d70f2f990b7c85bf6 (patch) | |
tree | 84b5125046735e664627193ba88eb2bbba601ea1 | |
parent | 37f659ec1127781395c3523244399514ba99eab7 (diff) |
fix yet another small glitch
-rw-r--r-- | ghook.c | 5 | ||||
-rw-r--r-- | glib/ghook.c | 5 |
2 files changed, 8 insertions, 2 deletions
@@ -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 */ } } diff --git a/glib/ghook.c b/glib/ghook.c index 4464db454..fae692796 100644 --- a/glib/ghook.c +++ b/glib/ghook.c @@ -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 */ } } |