[libgda/LIBGDA_5.2] VConnection: fix double lock
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_5.2] VConnection: fix double lock
- Date: Mon, 24 Sep 2018 04:05:50 +0000 (UTC)
commit 5a8528926cdd4f9fb8c7bdd59d6bb4f5279335aa
Author: Daniel Espinosa <esodan gmail com>
Date: Sun Sep 23 21:50:02 2018 -0500
VConnection: fix double lock
libgda/gda-config.c | 1 -
libgda/sqlite/virtual/gda-vconnection-data-model.c | 2 --
2 files changed, 3 deletions(-)
---
diff --git a/libgda/gda-config.c b/libgda/gda-config.c
index 7ac96f664..65776ab7d 100644
--- a/libgda/gda-config.c
+++ b/libgda/gda-config.c
@@ -1728,7 +1728,6 @@ load_all_providers (void)
if (dirname) {
gchar *pdir;
pdir = g_build_path (G_DIR_SEPARATOR_S, dirname, "providers", NULL);
- g_print (pdir);
load_providers_from_dir (pdir, TRUE);
g_free (pdir);
}
diff --git a/libgda/sqlite/virtual/gda-vconnection-data-model.c
b/libgda/sqlite/virtual/gda-vconnection-data-model.c
index c6f522e10..8fb3bc9ee 100644
--- a/libgda/sqlite/virtual/gda-vconnection-data-model.c
+++ b/libgda/sqlite/virtual/gda-vconnection-data-model.c
@@ -601,10 +601,8 @@ static void
vcontext_object_weak_notify_cb (VContext *context, GObject *old_context_object)
{
g_assert (context);
- g_mutex_lock (context->vtable->context.mutex);
context->context_object = NULL;
g_hash_table_remove (context->vtable->context.hash, old_context_object);
- g_mutex_unlock (context->vtable->context.mutex);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]