From: Michael Göhler Date: Fri, 26 Dec 2014 20:22:09 +0000 (+0100) Subject: Merge pull request #68 from jodiecunningham/master X-Git-Url: https://git.danieliu.xyz/?p=smdp.git;a=commitdiff_plain;h=6d8a33a52086f43a392a8ae95b102d0c14d64a7d;hp=8a77ead5006867bb2572d80072645178fc74dbe4 Merge pull request #68 from jodiecunningham/master fix header-only file crash, fixes #67 --- diff --git a/src/markdown.c b/src/markdown.c index 05c77be..8471724 100644 --- a/src/markdown.c +++ b/src/markdown.c @@ -81,6 +81,8 @@ void free_deck(deck_t *deck) { while (slide) { free_line(slide->line); next = slide->next; + if (slide == NULL) + return; free(slide); slide = next; }