From 7ebff5f725c632fe3f8ff364e961e34471f58656 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Fri, 4 Jul 2008 19:57:57 -0300 Subject: Add crash handler (based on old Sylpheed Claws code) --- hardinfo2/crash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hardinfo2/crash.c') diff --git a/hardinfo2/crash.c b/hardinfo2/crash.c index 7f749947..1c0b7a39 100644 --- a/hardinfo2/crash.c +++ b/hardinfo2/crash.c @@ -125,9 +125,10 @@ crash_main(const char *arg) pid, g_strsignal(atol(tokens[1]))); output = g_string_new(""); - crash_debug(pid, tokens[2], output); + crash_debug(pid, tokens[2], output); crash_dialog_show(text, output->str); + g_string_free(output, TRUE); g_free(text); g_strfreev(tokens); @@ -255,7 +256,7 @@ crash_create_debugger_file(void) } /* - * ! \brief launches debugger and attaches it to crashed publicit + * ! \brief launches debugger and attaches it to crashed hardinfo */ static void crash_debug(unsigned long crash_pid, -- cgit v1.2.3