diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-07-04 19:57:57 -0300 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-07-04 19:57:57 -0300 |
commit | 7ebff5f725c632fe3f8ff364e961e34471f58656 (patch) | |
tree | e34e1b8a025f01c1c99eb953025a06f8925fffcf /hardinfo2/crash.c | |
parent | e102d515fb20d154aade1f680d793ebaeea1786f (diff) |
Add crash handler (based on old Sylpheed Claws code)
Diffstat (limited to 'hardinfo2/crash.c')
-rw-r--r-- | hardinfo2/crash.c | 5 |
1 files changed, 3 insertions, 2 deletions
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, |