summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-09 09:25:06 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-09 09:25:06 +0000
commitf181dca67d62e1bf68eb703e97bf0f9f6190c892 (patch)
treebb734a372e7b0b28ae826db47d2cba0cfbeff3ed /src/fe-text
parent600e0da44344d4af75d9ba1e7d3982fcfce332b0 (diff)
downloadirssi-f181dca67d62e1bf68eb703e97bf0f9f6190c892.zip
Fixed a memory leak with ^Y
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2540 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-readline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index 32ae7abe..46cafc18 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -305,8 +305,10 @@ static void key_yank_from_cutbuffer(void)
char *cutbuffer;
cutbuffer = gui_entry_get_cutbuffer(active_entry);
- if (cutbuffer != NULL)
+ if (cutbuffer != NULL) {
gui_entry_insert_text(active_entry, cutbuffer);
+ g_free(cutbuffer);
+ }
}
static void key_transpose_characters(void)