diff options
author | rbuj <[email protected]> | 2021-01-01 20:44:23 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2021-01-05 16:09:39 +0000 |
commit | ed1de4a6993cc4a711324d7733e831d445305e81 (patch) | |
tree | 44ebebfc3d536794b5298fdc4a647d9678590e04 /libmenu | |
parent | 41ca6e3423b8ab0bf034d9ad3f8b2654d3ad2d1e (diff) | |
download | mate-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.c | 2 |
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; } |