summaryrefslogtreecommitdiff
path: root/pidgin/libpidgin.c
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2023-03-23 22:03:45 -0500
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2023-03-23 22:03:45 -0500
commitddbb62d46470ba81a3cd2ec91febe6d11e3f34e0 (patch)
treee2169f7c89e68fc2e403803f9ce7d3d619a56620 /pidgin/libpidgin.c
parent16071bc64088b65c889ddbc993f8f52cecace8ed (diff)
downloadpidgin-ddbb62d46470ba81a3cd2ec91febe6d11e3f34e0.tar.gz
Fix leaked errors
And also simplify some cases with `g_clear_error`. Testing Done: Compiled and ran tests in valgrind, though it never noticed these anyway. Reviewed at https://reviews.imfreedom.org/r/2384/
Diffstat (limited to 'pidgin/libpidgin.c')
-rw-r--r--pidgin/libpidgin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pidgin/libpidgin.c b/pidgin/libpidgin.c
index 2abde5e34f..7aa13e9772 100644
--- a/pidgin/libpidgin.c
+++ b/pidgin/libpidgin.c
@@ -118,6 +118,7 @@ mainloop_sighandler(GIOChannel *source, G_GNUC_UNUSED GIOCondition cond,
if (stat != G_IO_STATUS_NORMAL) {
purple_debug_error("sighandler", "Signal callback failed to read "
"from signal socket: %s", error->message);
+ g_clear_error(&error);
purple_core_quit();
return FALSE;
}