summaryrefslogtreecommitdiff
path: root/ghook.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-12-22 10:09:28 +0000
committerTim Janik <timj@src.gnome.org>1998-12-22 10:09:28 +0000
commitfc323595ff1b74b70eb592febf248964a586a9e8 (patch)
tree626edc11aa79e53d25248d9fbd7857076c863b6d /ghook.c
parent097c9b17985efe03bf7d5a1b073d81f526218c87 (diff)
downloadglib-fc323595ff1b74b70eb592febf248964a586a9e8.tar.gz
fixed buglet that could cause bogus warnings.
Tue Dec 22 10:32:11 1998 Tim Janik <timj@gtk.org> * ghook.c (g_hook_first_valid): fixed buglet that could cause bogus warnings.
Diffstat (limited to 'ghook.c')
-rw-r--r--ghook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghook.c b/ghook.c
index 8705e63b9..b9d7adbd0 100644
--- a/ghook.c
+++ b/ghook.c
@@ -408,9 +408,9 @@ g_hook_first_valid (GHookList *hook_list,
GHook *hook;
hook = hook_list->hooks;
- g_hook_ref (hook_list, hook);
if (hook)
{
+ g_hook_ref (hook_list, hook);
if (G_HOOK_IS_VALID (hook) && (may_be_in_call || !G_HOOK_IN_CALL (hook)))
return hook;
else