Commit fc37b18d authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent 4669a053
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)
......
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment