From 5f52b321cc919e0eb5e2e70d70f2f990b7c85bf6 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Sun, 17 Jan 1999 05:05:08 +0000 Subject: [PATCH] fix yet another small glitch --- ghook.c | 5 ++++- glib/ghook.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ghook.c b/ghook.c index 4464db4..fae6927 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 4464db4..fae6927 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 */ } } -- 2.7.4