summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-02-23 18:21:38 +0100
committerPablo Barciela <[email protected]>2019-03-05 23:50:48 +0100
commit0bd2d81dac01922ee0b6afaf3fe8431f93182f3b (patch)
treebfa3023d4fce109c8151504915bf4be935465ede
parent1848d37c4ddb0d4d5b20f5bbb99b94e22aae68e7 (diff)
downloadcaja-0bd2d81dac01922ee0b6afaf3fe8431f93182f3b.tar.bz2
caja-0bd2d81dac01922ee0b6afaf3fe8431f93182f3b.tar.xz
caja-icon-container: Fix use of memory after it is freed
to avoid warning with Clang Analyzer
-rw-r--r--libcaja-private/caja-icon-container.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c
index 6b753b31..b082f9b7 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -7946,11 +7946,11 @@ caja_icon_container_remove (CajaIconContainer *container,
return FALSE;
}
+ g_signal_emit (container, signals[ICON_REMOVED], 0, icon);
+
icon_destroy (container, icon);
schedule_redo_layout (container);
- g_signal_emit (container, signals[ICON_REMOVED], 0, icon);
-
return TRUE;
}