Commit 7b12c54e authored by Anders Carlsson's avatar Anders Carlsson Committed by Anders Carlsson
Browse files

Plug a leak.

2001-11-08  Anders Carlsson  <andersca@gnu.org>

	* libnautilus-private/nautilus-icon-dnd.c
	(nautilus_icon_dnd_update_drop_target): Plug a leak.


Sloff Sliff
parent 60c00f6f
2001-11-08 Anders Carlsson <andersca@gnu.org>
* libnautilus-private/nautilus-icon-dnd.c
(nautilus_icon_dnd_update_drop_target): Plug a leak.
2001-11-08 Darin Adler <darin@bentspoon.com>
* configure.in: Finish the job of removing the converters.
......
......@@ -1131,6 +1131,7 @@ nautilus_icon_dnd_update_drop_target (NautilusIconContainer *container,
int x, int y)
{
NautilusIcon *icon;
NautilusFile *file;
double world_x, world_y;
g_assert (NAUTILUS_IS_ICON_CONTAINER (container));
......@@ -1152,13 +1153,15 @@ nautilus_icon_dnd_update_drop_target (NautilusIconContainer *container,
*/
/* Find if target icon accepts our drop. */
if (icon != NULL
&& (container->details->dnd_info->drag_info.data_type != EEL_ICON_DND_KEYWORD)
&& !nautilus_drag_can_accept_items
(nautilus_file_get (
nautilus_icon_container_get_icon_uri (container, icon)),
container->details->dnd_info->drag_info.selection_list)) {
icon = NULL;
if (icon != NULL && (container->details->dnd_info->drag_info.data_type != EEL_ICON_DND_KEYWORD)) {
file = nautilus_file_get (nautilus_icon_container_get_icon_uri (container, icon));
if (!nautilus_drag_can_accept_items (file,
container->details->dnd_info->drag_info.selection_list)) {
icon = NULL;
}
nautilus_file_unref (file);
}
set_drop_target (container, icon);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment