summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-04-30 13:21:21 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-04-30 13:21:21 +0200
commit886b81498f2b0e738c16ec55d4675f3c8555117d (patch)
tree5faa27240b105ce0c0f67c4a40fc1ee17fc40cfe /src/gui
parent760e216c5b3cc7945bfb17f94e39900d20c185e7 (diff)
downloadweechat-886b81498f2b0e738c16ec55d4675f3c8555117d.zip
Fixed crash with scripts when WeeChat calls functions of many scripts at same time with callbacks (bug #23109)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-buffer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 3bdfd982e..9b8648f61 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -751,7 +751,7 @@ gui_buffer_close (struct t_gui_buffer *buffer, int switch_to_another)
{
struct t_gui_window *ptr_window;
struct t_gui_buffer *ptr_buffer;
-
+
hook_signal_send ("buffer_closing",
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
@@ -827,12 +827,13 @@ gui_buffer_close (struct t_gui_buffer *buffer, int switch_to_another)
ptr_window->buffer = NULL;
}
+ hook_signal_send ("buffer_closed",
+ WEECHAT_HOOK_SIGNAL_POINTER, buffer);
+
free (buffer);
if (gui_windows && gui_current_window && gui_current_window->buffer)
gui_status_refresh_needed = 1;
-
- hook_signal_send ("buffer_closed", WEECHAT_HOOK_SIGNAL_STRING, NULL);
}
/*