diff --git a/src/global.c b/src/global.c index 00ff6ab8..ca7975a4 100644 --- a/src/global.c +++ b/src/global.c @@ -1060,6 +1060,7 @@ void shortcut_init(bool unjustify) void free_shortcutage(shortcut **shortcutage) { assert(shortcutage != NULL); + while (*shortcutage != NULL) { shortcut *ps = *shortcutage; *shortcutage = (*shortcutage)->next;