mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Don't leak list[0]. (#323629, Markku Vire)
2005-12-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkselection.c (gtk_selection_data_get_uris): Don't leak list[0]. (#323629, Markku Vire)
This commit is contained in:
parent
4669a053d7
commit
fc37b18d5b
@ -1,5 +1,8 @@
|
||||
2005-12-09 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkselection.c (gtk_selection_data_get_uris): Don't
|
||||
leak list[0]. (#323629, Markku Vire)
|
||||
|
||||
* gtk/gtktextbuffer.c (paste_from_buffer): Unref the buffer
|
||||
when freeing the RequestData. (#323577)
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2005-12-09 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkselection.c (gtk_selection_data_get_uris): Don't
|
||||
leak list[0]. (#323629, Markku Vire)
|
||||
|
||||
* gtk/gtktextbuffer.c (paste_from_buffer): Unref the buffer
|
||||
when freeing the RequestData. (#323577)
|
||||
|
||||
|
@ -1520,9 +1520,7 @@ gtk_selection_data_get_uris (GtkSelectionData *selection_data)
|
||||
if (count > 0)
|
||||
result = g_uri_list_extract_uris (list[0]);
|
||||
|
||||
for (i = 1; i < count; i++)
|
||||
g_free (list[i]);
|
||||
g_free (list);
|
||||
g_strfreev (list);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user