[evolution-data-server/openismus-work-pohly: 45/45] Bug #690151 - Crash in e_book_backend_file_bump_revision()
- From: Patrick Ohly <pohly src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/openismus-work-pohly: 45/45] Bug #690151 - Crash in e_book_backend_file_bump_revision()
- Date: Thu, 21 Mar 2013 12:19:17 +0000 (UTC)
commit 5b1d53e05b3fd51a1b72576d38eb42b8e2e7a83e
Author: Patrick Ohly <patrick ohly intel com>
Date: Fri Jan 11 12:27:47 2013 +0100
Bug #690151 - Crash in e_book_backend_file_bump_revision()
gnome-3-6 already used rw locks in most places, but not yet in
e_book_backend_file_bump_revision(). Adding it there.
addressbook/backends/file/e-book-backend-file.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/backends/file/e-book-backend-file.c b/addressbook/backends/file/e-book-backend-file.c
index 4ba01a9..942ba7e 100644
--- a/addressbook/backends/file/e-book-backend-file.c
+++ b/addressbook/backends/file/e-book-backend-file.c
@@ -631,6 +631,8 @@ e_book_backend_file_bump_revision (EBookBackendFile *bf)
{
GError *error = NULL;
+ g_rw_lock_writer_lock (&(bf->priv->lock));
+
g_free (bf->priv->revision);
bf->priv->revision = e_book_backend_file_new_revision (bf);
@@ -646,6 +648,8 @@ e_book_backend_file_bump_revision (EBookBackendFile *bf)
e_book_backend_notify_property_changed (E_BOOK_BACKEND (bf),
BOOK_BACKEND_PROPERTY_REVISION,
bf->priv->revision);
+
+ g_rw_lock_writer_unlock (&(bf->priv->lock));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]