summaryrefslogtreecommitdiff
path: root/libmenu/entry-directories.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmenu/entry-directories.c')
-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;
}