summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-dnd.c
diff options
context:
space:
mode:
authorDave Camp <dave@ximian.com>2002-08-12 20:01:54 +0000
committerDave Camp <campd@src.gnome.org>2002-08-12 20:01:54 +0000
commit0459d0d0c70e64a478b44a33d88899d17af183a7 (patch)
treef950442a373348d3c27ba874d981b7a3515a0377 /libnautilus-private/nautilus-dnd.c
parent1144bec381917e1752823ee153abfc2f7d9841ba (diff)
downloadnautilus-0459d0d0c70e64a478b44a33d88899d17af183a7.tar.gz
Unref target_uri before returning when eel_uri_is_trash
2002-08-12 Dave Camp <dave@ximian.com> * libnautilus-private/nautilus-dnd.c: (nautilus_drag_default_drop_action_for_icons): Unref target_uri before returning when eel_uri_is_trash (target_uri_string). * libnautilus-private/nautilus-file-operations.c: (append_basename): Free the filename returned from gnome_vfs_uri_etract_short_name(). * libnautilus-private/nautilus-theme.c: (attributes_free): Free the attributes struct. * libnautilus-private/nautilus-undo-manager.c: (finalize): Free the details struct. * src/nautilus-bookmark-list.c: (append_bookmark_node): Free the mime type string.
Diffstat (limited to 'libnautilus-private/nautilus-dnd.c')
-rw-r--r--libnautilus-private/nautilus-dnd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-dnd.c b/libnautilus-private/nautilus-dnd.c
index 999492495..0e88b2f8d 100644
--- a/libnautilus-private/nautilus-dnd.c
+++ b/libnautilus-private/nautilus-dnd.c
@@ -295,6 +295,11 @@ nautilus_drag_default_drop_action_for_icons (GdkDragContext *context,
if (actions & GDK_ACTION_MOVE) {
*action = GDK_ACTION_MOVE;
}
+
+ if (target_uri) {
+ gnome_vfs_uri_unref (target_uri);
+ }
+
return;
} else if (eel_str_has_prefix (target_uri_string, NAUTILUS_COMMAND_SPECIFIER)