diff options
author | Timo Sirainen <cras@irssi.org> | 2002-03-09 09:25:06 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-03-09 09:25:06 +0000 |
commit | f181dca67d62e1bf68eb703e97bf0f9f6190c892 (patch) | |
tree | bb734a372e7b0b28ae826db47d2cba0cfbeff3ed | |
parent | 600e0da44344d4af75d9ba1e7d3982fcfce332b0 (diff) | |
download | irssi-f181dca67d62e1bf68eb703e97bf0f9f6190c892.zip |
Fixed a memory leak with ^Y
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2540 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-text/gui-readline.c | 4 |
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) |