comparison 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
comparison
equal deleted inserted replaced
20986:12753bdeaf47 20987:0cbfc19e4909
3129 GList *next = l->next; 3129 GList *next = l->next;
3130 struct scalable_data *sd = l->data; 3130 struct scalable_data *sd = l->data;
3131 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, 3131 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer,
3132 &i, sd->mark); 3132 &i, sd->mark);
3133 if (gtk_text_iter_in_range(&i, start, end)) { 3133 if (gtk_text_iter_in_range(&i, start, end)) {
3134 GtkIMHtmlScalable *scale = sd->scalable; 3134 GtkIMHtmlScalable *scale = GTK_IMHTML_SCALABLE(sd->scalable);
3135 scale->free(scale); 3135 scale->free(scale);
3136 imhtml->scalables = g_list_remove_link(imhtml->scalables, l); 3136 g_free(sd);
3137 imhtml->scalables = g_list_delete_link(imhtml->scalables, l);
3137 } 3138 }
3138 l = next; 3139 l = next;
3139 } 3140 }
3140 3141
3141 sl = imhtml->im_images; 3142 sl = imhtml->im_images;