aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-threads.c
diff options
context:
space:
mode:
authorMatthew Loper <mloper@src.gnome.org>2000-08-17 22:19:02 +0800
committerMatthew Loper <mloper@src.gnome.org>2000-08-17 22:19:02 +0800
commit24feba20337274a86d51700fa0e8f56ce378c902 (patch)
tree78effe172324ffdb993888b9a3d7345d7ec209b3 /mail/mail-threads.c
parent1cb1a157cb489f3b8dd49bed81bad7c9dec33f7e (diff)
downloadgsoc2013-evolution-24feba20337274a86d51700fa0e8f56ce378c902.tar
gsoc2013-evolution-24feba20337274a86d51700fa0e8f56ce378c902.tar.gz
gsoc2013-evolution-24feba20337274a86d51700fa0e8f56ce378c902.tar.bz2
gsoc2013-evolution-24feba20337274a86d51700fa0e8f56ce378c902.tar.lz
gsoc2013-evolution-24feba20337274a86d51700fa0e8f56ce378c902.tar.xz
gsoc2013-evolution-24feba20337274a86d51700fa0e8f56ce378c902.tar.zst
gsoc2013-evolution-24feba20337274a86d51700fa0e8f56ce378c902.zip
Whole buncha leak fixes thanks to Purify
svn path=/trunk/; revision=4862
Diffstat (limited to 'mail/mail-threads.c')
-rw-r--r--mail/mail-threads.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/mail-threads.c b/mail/mail-threads.c
index cf3528dfb1..8fe170eea2 100644
--- a/mail/mail-threads.c
+++ b/mail/mail-threads.c
@@ -300,6 +300,11 @@ mail_operation_queue (const mail_operation_spec * spec, gpointer input,
} /* else add self to queue */
write (DISPATCH_WRITER, clur, sizeof (closure_t));
+ /* dispatch allocates a separate buffer
+ * to hold the closure; it's in the pipe and
+ * can safely be freed
+ */
+ g_free (clur);
queue_len++;
return TRUE;
}
@@ -865,7 +870,7 @@ get_password (com_msg_t * msg)
if (button == 1 || *(msg->reply) == NULL) {
*(msg->success) = FALSE;
*(msg->reply) = g_strdup (_("User cancelled query."));
- } else if (button > 0) {
+ } else if (button >= 0) {
*(msg->success) = TRUE;
}