Skip to content
Permalink
Browse files

caja-icon-container: Fix use of memory after it is freed

to avoid warning with Clang Analyzer
  • Loading branch information...
sc0w committed Feb 23, 2019
1 parent 1848d37 commit 0bd2d81dac01922ee0b6afaf3fe8431f93182f3b
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}

0 comments on commit 0bd2d81

Please sign in to comment.
You can’t perform that action at this time.