summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/cmdlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver/src/cmdlist.cpp')
-rw-r--r--plugins/Scriver/src/cmdlist.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Scriver/src/cmdlist.cpp b/plugins/Scriver/src/cmdlist.cpp
index dbeed95eec..4b8b66da7d 100644
--- a/plugins/Scriver/src/cmdlist.cpp
+++ b/plugins/Scriver/src/cmdlist.cpp
@@ -85,7 +85,7 @@ TCmdList* tcmdlist_last(TCmdList *list)
return nullptr;
}
-void tcmdlist_free(TCmdList *list)
+void tcmdlist_free(TCmdList *&list)
{
TCmdList *n = list, *next;
@@ -95,4 +95,6 @@ void tcmdlist_free(TCmdList *list)
mir_free(n);
n = next;
}
+
+ list = nullptr;
}