summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Janik <timj@src.gnome.org>1999-01-17 05:05:08 +0000
committerTim Janik <timj@src.gnome.org>1999-01-17 05:05:08 +0000
commit5f52b321cc919e0eb5e2e70d70f2f990b7c85bf6 (patch)
tree84b5125046735e664627193ba88eb2bbba601ea1
parent37f659ec1127781395c3523244399514ba99eab7 (diff)
fix yet another small glitch
-rw-r--r--ghook.c5
-rw-r--r--glib/ghook.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/ghook.c b/ghook.c
index 4464db454..fae692796 100644
--- a/ghook.c
+++ b/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 */
}
}
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 */
}
}