Skip to content

Commit

Permalink
caja-icon-container: Fix use of memory after it is freed
Browse files Browse the repository at this point in the history
to avoid warning with Clang Analyzer
  • Loading branch information
sc0w committed Mar 5, 2019
1 parent 1848d37 commit 0bd2d81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcaja-private/caja-icon-container.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0bd2d81

Please sign in to comment.