diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-04-30 13:21:21 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-04-30 13:21:21 +0200 |
commit | 886b81498f2b0e738c16ec55d4675f3c8555117d (patch) | |
tree | 5faa27240b105ce0c0f67c4a40fc1ee17fc40cfe /src/core | |
parent | 760e216c5b3cc7945bfb17f94e39900d20c185e7 (diff) | |
download | weechat-886b81498f2b0e738c16ec55d4675f3c8555117d.zip |
Fixed crash with scripts when WeeChat calls functions of many scripts at same time with callbacks (bug #23109)
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-hook.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index a0099f29f..b904b3cdc 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -1227,6 +1227,10 @@ unhook (struct t_hook *hook) { struct t_hook *ptr_hook; + /* invalid hook? */ + if (!hook_valid (hook)) + return; + /* hook already deleted? */ if (hook->deleted) return; |