summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-02-23 18:21:38 +0100
committerVictor Kareh <[email protected]>2019-03-05 17:25:58 -0500
commitf6a5738c892207534bc946faa8f6b398b54395a9 (patch)
tree2c18a0ac007d6e885e9b7a53f8d3ce9df9e8943b /libcaja-private
parent8f8372522bc3c6122b15cc3f1b9e52e8023603f3 (diff)
downloadcaja-f6a5738c892207534bc946faa8f6b398b54395a9.tar.bz2
caja-f6a5738c892207534bc946faa8f6b398b54395a9.tar.xz
caja-icon-container: Fix use of memory after it is freed
to avoid warning with Clang Analyzer
Diffstat (limited to 'libcaja-private')
-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;
}