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:
Matthias Clasen 2005-12-09 16:25:56 +00:00 committed by Matthias Clasen
parent 4669a053d7
commit fc37b18d5b
3 changed files with 7 additions and 3 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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;