summaryrefslogtreecommitdiff
path: root/libmenu
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-01 20:44:23 +0100
committerLuke from DC <[email protected]>2021-01-05 16:09:39 +0000
commited1de4a6993cc4a711324d7733e831d445305e81 (patch)
tree44ebebfc3d536794b5298fdc4a647d9678590e04 /libmenu
parent41ca6e3423b8ab0bf034d9ad3f8b2654d3ad2d1e (diff)
downloadmate-menus-ed1de4a6993cc4a711324d7733e831d445305e81.tar.bz2
mate-menus-ed1de4a6993cc4a711324d7733e831d445305e81.tar.xz
entry-directories: Use of memory after it is freed (scan-build)
Diffstat (limited to 'libmenu')
-rw-r--r--libmenu/entry-directories.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmenu/entry-directories.c b/libmenu/entry-directories.c
index 33b68eb..344afa7 100644
--- a/libmenu/entry-directories.c
+++ b/libmenu/entry-directories.c
@@ -398,8 +398,8 @@ static gboolean cached_dir_remove_subdir(CachedDir* dir, const char* basename)
{
subdir->deleted = TRUE;
- cached_dir_unref (subdir);
dir->subdirs = g_slist_remove (dir->subdirs, subdir);
+ cached_dir_unref (subdir);
return TRUE;
}