[nautilus] pathbar: cleanups
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] pathbar: cleanups
- Date: Fri, 18 Feb 2011 20:53:18 +0000 (UTC)
commit 1fd64c8188a513ec0321e2ff70225f9a7c52b3ad
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Feb 18 15:52:15 2011 -0500
pathbar: cleanups
src/nautilus-pathbar.c | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 6d9bb2a..3afe8dd 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -330,18 +330,9 @@ nautilus_path_bar_finalize (GObject *object)
}
g_list_free (path_bar->button_list);
- if (path_bar->root_path) {
- g_object_unref (path_bar->root_path);
- path_bar->root_path = NULL;
- }
- if (path_bar->home_path) {
- g_object_unref (path_bar->home_path);
- path_bar->home_path = NULL;
- }
- if (path_bar->desktop_path) {
- g_object_unref (path_bar->desktop_path);
- path_bar->desktop_path = NULL;
- }
+ g_clear_object (&path_bar->root_path);
+ g_clear_object (&path_bar->home_path);
+ g_clear_object (&path_bar->desktop_path);
g_signal_handlers_disconnect_by_func (nautilus_trash_monitor_get (),
trash_state_changed_cb, path_bar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]