diff options
author | Milan Crha <mcrha@redhat.com> | 2012-11-30 22:29:34 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-11-30 22:30:45 +0800 |
commit | ab3f65a15e1b6fe5bdf488e6e879899e283ccc43 (patch) | |
tree | ac594d423506e1fa1d47fbf057a1ec71947bf7a5 /libemail-utils | |
parent | 1eb7481305d0feda31538d072c206aab5dbdeabd (diff) | |
download | gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.tar gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.tar.gz gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.tar.bz2 gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.tar.lz gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.tar.xz gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.tar.zst gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.zip |
Address couple issues found by a Coverity scan
Diffstat (limited to 'libemail-utils')
-rw-r--r-- | libemail-utils/mail-mt.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libemail-utils/mail-mt.c b/libemail-utils/mail-mt.c index 2a3f841f19..baf1476f82 100644 --- a/libemail-utils/mail-mt.c +++ b/libemail-utils/mail-mt.c @@ -590,6 +590,8 @@ do_call (struct _call_msg *m, break; } + va_end (ap); + if (g_cancellable_is_cancelled (cancellable)) { if (cancel_activity) cancel_activity (cancellable); @@ -602,12 +604,18 @@ do_call (struct _call_msg *m, e_flag_set (m->done); } +static void +do_free (struct _call_msg *msg) +{ + va_end (msg->ap); +} + static MailMsgInfo mail_call_info = { sizeof (struct _call_msg), (MailMsgDescFunc) NULL, (MailMsgExecFunc) do_call, (MailMsgDoneFunc) NULL, - (MailMsgFreeFunc) NULL + (MailMsgFreeFunc) do_free }; gpointer |