# HG changeset patch # User Mikael Berthe # Date 1149795772 -7200 # Node ID c65b71dcda9456720293a7bffd8913e136c55cca # Parent a05b5a16a06a872063069a0efa21dff46d1c1376 Fix memory leak in scr_UpdateWindow() diff -r a05b5a16a06a -r c65b71dcda94 mcabber/src/hbuf.c --- a/mcabber/src/hbuf.c Thu Jun 08 21:29:09 2006 +0200 +++ b/mcabber/src/hbuf.c Thu Jun 08 21:42:52 2006 +0200 @@ -245,7 +245,8 @@ // hbuf_get_lines(hbuf, n) // Returns an array of n hbb_line pointers // (The first line will be the line currently pointed by hbuf) -// Note: The caller should free the array and the text pointers after use. +// Note: The caller should free the array, the hbb_line pointers and the +// text pointers after use. hbb_line **hbuf_get_lines(GList *hbuf, unsigned int n) { unsigned int i; diff -r a05b5a16a06a -r c65b71dcda94 mcabber/src/screen.c --- a/mcabber/src/screen.c Thu Jun 08 21:29:09 2006 +0200 +++ b/mcabber/src/screen.c Thu Jun 08 21:42:52 2006 +0200 @@ -572,6 +572,7 @@ wattrset(win_entry->win, get_color(COLOR_GENERAL)); wclrtoeol(win_entry->win); g_free(line->text); + g_free(line); } else { wclrtobot(win_entry->win); break;