[evolution-data-server] Correctly dispose of the source in EBookBackend
- From: Ross Burton <rburton src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server] Correctly dispose of the source in EBookBackend
- Date: Mon, 8 Jun 2009 08:31:30 -0400 (EDT)
commit 0717f6cb8ad32da54dc4370d2997cd04dc989691
Author: Ross Burton <ross linux intel com>
Date: Fri Jun 5 08:37:47 2009 +0100
Correctly dispose of the source in EBookBackend
---
addressbook/libedata-book/e-book-backend.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/addressbook/libedata-book/e-book-backend.c b/addressbook/libedata-book/e-book-backend.c
index 815eaa4..2468180 100644
--- a/addressbook/libedata-book/e-book-backend.c
+++ b/addressbook/libedata-book/e-book-backend.c
@@ -1042,6 +1042,7 @@ e_book_backend_init (EBookBackend *backend)
priv = g_new0 (EBookBackendPrivate, 1);
priv->clients = NULL;
+ priv->source = NULL;
priv->views = e_list_new((EListCopyFunc) NULL, (EListFreeFunc) NULL, NULL);
priv->open_mutex = g_mutex_new ();
priv->clients_mutex = g_mutex_new ();
@@ -1065,7 +1066,10 @@ e_book_backend_dispose (GObject *object)
backend->priv->views = NULL;
}
- g_object_unref (backend->priv->source);
+ if (backend->priv->source) {
+ g_object_unref (backend->priv->source);
+ backend->priv->source = NULL;
+ }
g_mutex_free (backend->priv->open_mutex);
g_mutex_free (backend->priv->clients_mutex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]