summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-27 11:35:52 +0200
committerJasmine Hassan <[email protected]>2012-11-16 09:45:50 +0200
commitc7814e5022409a72afe03743b0198d964e0338b5 (patch)
treef5b63f7ceac9dc95aee98c4051d3545f6ce44f6b /src
parentbf89f7f0ec597cfc2458338643f9c6c00e80689b (diff)
downloadcaja-c7814e5022409a72afe03743b0198d964e0338b5.tar.bz2
caja-c7814e5022409a72afe03743b0198d964e0338b5.tar.xz
[pathbar] release the highlight path on dispose
http://git.gnome.org/browse/nautilus/commit/?id=fd75e8f5e8b160eaba22ca4ed7efc852dba612a0
Diffstat (limited to 'src')
-rw-r--r--src/caja-places-sidebar.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c
index 714fe6dd..e161a3e6 100644
--- a/src/caja-places-sidebar.c
+++ b/src/caja-places-sidebar.c
@@ -3012,20 +3012,22 @@ caja_places_sidebar_dispose (GObject *object)
free_drag_data (sidebar);
- if (sidebar->store != NULL)
- {
+ 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;
}
- if (sidebar->volume_monitor != NULL)
- {
+ if (sidebar->volume_monitor != NULL) {
g_object_unref (sidebar->volume_monitor);
sidebar->volume_monitor = NULL;
}
- if (sidebar->bookmarks != NULL)
- {
+ if (sidebar->bookmarks != NULL) {
g_object_unref (sidebar->bookmarks);
sidebar->bookmarks = NULL;
}