[balsa] Keep a parent window alive
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Keep a parent window alive
- Date: Sat, 27 May 2017 14:30:37 +0000 (UTC)
commit 1af87c6c9463df74bbf1a43974051e519c8ba92b
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sat May 27 10:30:17 2017 -0400
Keep a parent window alive
* libbalsa/send.c
(lbs_process_queue): object-ref the parent window...
(lbs_check_reachable_cb): and unref it.
ChangeLog | 8 ++++++++
libbalsa/send.c | 3 ++-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d56c15d..2f2d9f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2017-05-27 Peter Bloomfield <pbloomfield bellsouth net>
+ Keep a parent window alive
+
+ * libbalsa/send.c
+ (lbs_process_queue): object-ref the parent window...
+ (lbs_check_reachable_cb): and unref it.
+
+2017-05-27 Peter Bloomfield <pbloomfield bellsouth net>
+
Plug leak
* libbalsa/libbalsa.c (libbalsa_source_view_new): use the
diff --git a/libbalsa/send.c b/libbalsa/send.c
index f48b2fb..75d85f6 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -621,6 +621,7 @@ lbs_check_reachable_cb(GObject *object,
}
g_object_unref(send_info->outbox);
+ g_object_unref(send_info->parent);
g_free(send_info);
}
@@ -636,7 +637,7 @@ lbs_process_queue(LibBalsaMailbox *outbox,
send_info = g_new(SendQueueInfo, 1U);
send_info->outbox = g_object_ref(outbox);
send_info->finder = finder;
- send_info->parent = parent;
+ send_info->parent = g_object_ref(parent);
libbalsa_server_test_can_reach(LIBBALSA_SERVER(smtp_server), lbs_check_reachable_cb, send_info);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]