aboutsummaryrefslogtreecommitdiff
path: root/editor.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-14 08:48:07 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-14 08:48:07 +0200
commit87f3451f2d2e992da862bce71816fbeb548513c8 (patch)
tree2ba1e63eae9e3d6f740018571e0f7de41f6730e4 /editor.c
parentfee0c5a6dc9314724b60f1e2057b764d45256e54 (diff)
downloadvis-87f3451f2d2e992da862bce71816fbeb548513c8.tar.gz
vis-87f3451f2d2e992da862bce71816fbeb548513c8.tar.xz
All *_free(...) functions should accept a NULL argument
Diffstat (limited to 'editor.c')
-rw-r--r--editor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor.c b/editor.c
index 455ed5b..e892c09 100644
--- a/editor.c
+++ b/editor.c
@@ -377,6 +377,8 @@ err:
}
void editor_free(Editor *ed) {
+ if (!ed)
+ return;
while (ed->windows)
editor_window_close(ed->windows);
editor_prompt_free(ed->prompt);