From 4730dca546a6242b71cb9fcef1dc7d5adb1fe0a5 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 9 Oct 2015 11:24:54 +0200 Subject: [PATCH] Undefine argument list Call va_end() to correclty stop using the argument list. --- src/ui/window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/window.c b/src/ui/window.c index 261b9380..82073b40 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -905,6 +905,7 @@ win_vprint(ProfWin *window, const char show_char, int pad_indent, GDateTime *tim g_string_vprintf(fmt_msg, message, arg); win_print(window, show_char, pad_indent, timestamp, flags, theme_item, from, fmt_msg->str); g_string_free(fmt_msg, TRUE); + va_end(arg); } void