[nautilus] pathbar: release the highlight path on dispose



commit fd75e8f5e8b160eaba22ca4ed7efc852dba612a0
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Aug 22 18:53:02 2010 +0200

    pathbar: release the highlight path on dispose

 src/nautilus-places-sidebar.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 60bb458..13383a1 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -2794,6 +2794,11 @@ nautilus_places_sidebar_dispose (GObject *object)
 
 	free_drag_data (sidebar);
 
+	if (sidebar->eject_highlight_path != NULL) {
+		gtk_tree_path_free (sidebar->eject_highlight_path);
+		sidebar->eject_highlight_path = NULL;
+	}
+
 	if (sidebar->store != NULL) {
 		g_object_unref (sidebar->store);
 		sidebar->store = NULL;



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