diff options
Diffstat (limited to 'src/gui/gui-buffer.c')
-rw-r--r-- | src/gui/gui-buffer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 227be95a8..a3998c5e5 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -1319,6 +1319,12 @@ gui_buffer_set_name (struct t_gui_buffer *buffer, const char *name) (void) hook_signal_send ("buffer_renamed", WEECHAT_HOOK_SIGNAL_POINTER, buffer); + + if (buffer->old_full_name) + { + free (buffer->old_full_name); + buffer->old_full_name = NULL; + } } /* |