diff options
author | Jasmine Hassan <[email protected]> | 2012-10-27 11:35:52 +0200 |
---|---|---|
committer | Jasmine Hassan <[email protected]> | 2012-11-16 09:45:50 +0200 |
commit | c7814e5022409a72afe03743b0198d964e0338b5 (patch) | |
tree | f5b63f7ceac9dc95aee98c4051d3545f6ce44f6b /src/caja-places-sidebar.c | |
parent | bf89f7f0ec597cfc2458338643f9c6c00e80689b (diff) | |
download | caja-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/caja-places-sidebar.c')
-rw-r--r-- | src/caja-places-sidebar.c | 14 |
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; } |