Fix a small memory leak in /buffer purge
authorMikael Berthe <mikael@lilotux.net>
Thu, 01 Jun 2006 18:55:55 +0200
changeset 893 92aaf2af786b
parent 892 94bb9e40e40b
child 894 f76b32ff2f14
Fix a small memory leak in /buffer purge
mcabber/src/hbuf.c
--- a/mcabber/src/hbuf.c	Wed May 31 23:16:55 2006 +0200
+++ b/mcabber/src/hbuf.c	Thu Jun 01 18:55:55 2006 +0200
@@ -155,7 +155,7 @@
     g_free(hbuf_b_elt);
   }
 
-  g_list_free(*p_hbuf);
+  g_list_free(first_elt);
   *p_hbuf = NULL;
 }