From ff56295f76a13d38eb4b389bf001b34e8f56f083 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 4 Nov 2004 03:28:23 +0000 Subject: [PATCH] Don't leak the path. (#157301, Carlos Garnacho Parro) 2004-11-03 Matthias Clasen * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): Don't leak the path. (#157301, Carlos Garnacho Parro) --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-6 | 3 +++ ChangeLog.pre-2-8 | 3 +++ gtk/gtkfilechooserdefault.c | 2 ++ 5 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index dd1f43ce11..73bfec884a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-11-03 Matthias Clasen + * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): + Don't leak the path. (#157301, Carlos Garnacho Parro) + * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): Handle the case that the protocol version in the context is not set yet. (#157123, James Henstridge) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index dd1f43ce11..73bfec884a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2004-11-03 Matthias Clasen + * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): + Don't leak the path. (#157301, Carlos Garnacho Parro) + * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): Handle the case that the protocol version in the context is not set yet. (#157123, James Henstridge) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index dd1f43ce11..73bfec884a 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,8 @@ 2004-11-03 Matthias Clasen + * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): + Don't leak the path. (#157301, Carlos Garnacho Parro) + * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): Handle the case that the protocol version in the context is not set yet. (#157123, James Henstridge) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index dd1f43ce11..73bfec884a 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2004-11-03 Matthias Clasen + * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): + Don't leak the path. (#157301, Carlos Garnacho Parro) + * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): Handle the case that the protocol version in the context is not set yet. (#157123, James Henstridge) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 10fa42e40a..71bb4909f8 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -1557,6 +1557,8 @@ new_folder_button_clicked (GtkButton *button, path, impl->list_name_column, TRUE); + + gtk_tree_path_free (path); } /* Idle handler for creating a new folder after editing its name cell, or for