diff --git a/ChangeLog b/ChangeLog index 8d87e39f3d..2d181f1b1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-12-09 Matthias Clasen + * 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) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 8d87e39f3d..2d181f1b1a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2005-12-09 Matthias Clasen + * 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) diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c index 8491b1c503..045ed4521c 100644 --- a/gtk/gtkselection.c +++ b/gtk/gtkselection.c @@ -1519,9 +1519,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;