comparison mcabber/src/hbuf.c @ 893:92aaf2af786b

Fix a small memory leak in /buffer purge
author Mikael Berthe <mikael@lilotux.net>
date Thu, 01 Jun 2006 18:55:55 +0200
parents a3b8956db7bc
children c65b71dcda94
comparison
equal deleted inserted replaced
892:94bb9e40e40b 893:92aaf2af786b
153 g_free(hbuf_b_elt->ptr); 153 g_free(hbuf_b_elt->ptr);
154 } 154 }
155 g_free(hbuf_b_elt); 155 g_free(hbuf_b_elt);
156 } 156 }
157 157
158 g_list_free(*p_hbuf); 158 g_list_free(first_elt);
159 *p_hbuf = NULL; 159 *p_hbuf = NULL;
160 } 160 }
161 161
162 // hbuf_rebuild() 162 // hbuf_rebuild()
163 // Rebuild all hbuf list, with the new width. 163 // Rebuild all hbuf list, with the new width.