[nautilus] slot: don't ref the view returned by _get_current_view()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] slot: don't ref the view returned by _get_current_view()
- Date: Mon, 21 Mar 2011 18:37:30 +0000 (UTC)
commit e0726b71cbbe3ddd9548546991a30951ecc1f21e
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Mar 21 14:36:04 2011 -0400
slot: don't ref the view returned by _get_current_view()
https://bugzilla.gnome.org/show_bug.cgi?id=643968
src/nautilus-window-slot-dnd.c | 4 ----
src/nautilus-window-slot.c | 4 ++--
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/nautilus-window-slot-dnd.c b/src/nautilus-window-slot-dnd.c
index f25b067..a943462 100644
--- a/src/nautilus-window-slot-dnd.c
+++ b/src/nautilus-window-slot-dnd.c
@@ -263,10 +263,6 @@ slot_proxy_handle_drop (GtkWidget *widget,
gtk_drag_finish (context, FALSE, FALSE, time);
}
- if (target_view != NULL) {
- g_object_unref (target_view);
- }
-
g_free (target_uri);
drag_info_clear (drag_info);
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index b2cd696..4dcd4a4 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -663,9 +663,9 @@ NautilusView *
nautilus_window_slot_get_current_view (NautilusWindowSlot *slot)
{
if (slot->content_view != NULL) {
- return g_object_ref (slot->content_view);
+ return slot->content_view;
} else if (slot->new_content_view) {
- return g_object_ref (slot->new_content_view);
+ return slot->new_content_view;
}
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]