From 0bd2d81dac01922ee0b6afaf3fe8431f93182f3b Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sat, 23 Feb 2019 18:21:38 +0100 Subject: caja-icon-container: Fix use of memory after it is freed to avoid warning with Clang Analyzer --- libcaja-private/caja-icon-container.c | 4 ++-- 1 file 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; } -- cgit v1.2.1