[anjuta-extras/gnome-2-30: 5/6] profiler: Don't leak the target path when choosing a target



commit b8201c270e18cdefc359401ae0975ad676c559f1
Author: James Liggett <jrliggett cox net>
Date:   Mon Apr 12 18:14:05 2010 -0700

    profiler: Don't leak the target path when choosing a target

 plugins/profiler/plugin.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/profiler/plugin.c b/plugins/profiler/plugin.c
index 55635fe..1d8a094 100644
--- a/plugins/profiler/plugin.c
+++ b/plugins/profiler/plugin.c
@@ -625,6 +625,8 @@ on_profiler_select_target (GtkAction *action, Profiler *profiler)
 		}
 		else
 				profiler_set_target (profiler, NULL);
+
+		g_free (target);
 	}
 		
 	gtk_widget_hide (select_target_dialog);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]