projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed buglet that could cause bogus warnings.
[platform/upstream/glib.git]
/
glib
/
ghook.c
diff --git
a/glib/ghook.c
b/glib/ghook.c
index
8705e63
..
b9d7adb
100644
(file)
--- a/
glib/ghook.c
+++ b/
glib/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