[balsa/wip/gtk4: 258/351] mailbox: Clear the mutex at finalize time
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/wip/gtk4: 258/351] mailbox: Clear the mutex at finalize time
- Date: Wed, 23 May 2018 21:38:39 +0000 (UTC)
commit 07bd09eba78bb14480a6f6fb45bdfca9ab38bdf9
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Mar 26 15:05:52 2018 -0400
mailbox: Clear the mutex at finalize time
not dispose time. The trash box gets closed when its mbnode is disposed,
and that can happen after its mailbox is disposed.
libbalsa/mailbox.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libbalsa/mailbox.c b/libbalsa/mailbox.c
index 8c7228d..c8911aa 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -300,8 +300,6 @@ libbalsa_mailbox_dispose(GObject *object)
LibBalsaMailbox *mailbox = LIBBALSA_MAILBOX(object);
LibBalsaMailboxPrivate *priv = libbalsa_mailbox_get_instance_private(mailbox);
- g_rec_mutex_clear(&priv->rec_mutex);
-
while (priv->open_ref > 0) {
libbalsa_mailbox_close(mailbox, FALSE);
}
@@ -500,6 +498,8 @@ libbalsa_mailbox_finalize(GObject *object)
g_return_if_fail(LIBBALSA_IS_MAILBOX(mailbox));
+ g_rec_mutex_clear(&priv->rec_mutex);
+
g_free(priv->config_prefix);
g_free(priv->name);
g_free(priv->url);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]