Mercurial > pidgin
diff pidgin/gtkimhtml.c @ 20987:0cbfc19e4909
Fix some leaks caused by misuse of g_list_remove_link() instead of g_list_delete_link().
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 18 Oct 2007 20:20:57 +0000 |
parents | 3ef40e8de6ab |
children | d75823791c02 |
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c Thu Oct 18 18:13:30 2007 +0000 +++ b/pidgin/gtkimhtml.c Thu Oct 18 20:20:57 2007 +0000 @@ -3131,9 +3131,10 @@ gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &i, sd->mark); if (gtk_text_iter_in_range(&i, start, end)) { - GtkIMHtmlScalable *scale = sd->scalable; + GtkIMHtmlScalable *scale = GTK_IMHTML_SCALABLE(sd->scalable); scale->free(scale); - imhtml->scalables = g_list_remove_link(imhtml->scalables, l); + g_free(sd); + imhtml->scalables = g_list_delete_link(imhtml->scalables, l); } l = next; }