summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-10-24 16:07:05 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-10-24 16:07:05 +0200
commit9e0052f35fc866c7248431b7306e112d8fc5511a (patch)
tree0419c5a8aefc7a83ac3f783bb8bcfc21511387bd /src
parente37f7fa2b2e0a0c9abc3f0333c619a87c5714bf9 (diff)
downloadweechat-9e0052f35fc866c7248431b7306e112d8fc5511a.zip
Add free() for buffer local variables pointers when removing them
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 25776bef7..7d65bb98e 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -393,6 +393,8 @@ gui_buffer_local_var_remove (struct t_gui_buffer *buffer,
buffer->local_variables = local_var->next_var;
if (buffer->last_local_var == local_var)
buffer->last_local_var = local_var->prev_var;
+
+ free (local_var);
}
/*