summaryrefslogtreecommitdiff
path: root/desktop/hotlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/hotlist.c')
-rw-r--r--desktop/hotlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/hotlist.c b/desktop/hotlist.c
index cde038a4a..07cf2e424 100644
--- a/desktop/hotlist.c
+++ b/desktop/hotlist.c
@@ -303,6 +303,8 @@ static nserror hotlist_tree_node_folder_cb(
switch (msg.msg) {
case TREE_MSG_NODE_DELETE:
+ if (f == hl_ctx.default_folder)
+ hl_ctx.default_folder = NULL;
free((void*)f->data.value); /* Eww */
free(f);
break;