[epiphany] profile-migrator: Close SQLite connection in Firefox Sync history migration
- From: Gabriel Ivașcu <gabrielivascu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] profile-migrator: Close SQLite connection in Firefox Sync history migration
- Date: Tue, 3 Oct 2017 16:24:40 +0000 (UTC)
commit 598f7e039ad4ed8f64591596c29436f800b146fd
Author: Gabriel Ivascu <gabrielivascu gnome org>
Date: Tue Oct 3 18:23:38 2017 +0200
profile-migrator: Close SQLite connection in Firefox Sync history migration
src/profile-migrator/ephy-profile-migrator.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/profile-migrator/ephy-profile-migrator.c b/src/profile-migrator/ephy-profile-migrator.c
index 62a3f19..4204fa0 100644
--- a/src/profile-migrator/ephy-profile-migrator.c
+++ b/src/profile-migrator/ephy-profile-migrator.c
@@ -766,6 +766,7 @@ migrate_history_to_firefox_sync_history (void)
ephy_sqlite_connection_open (history_db, history_filename, &error);
if (error) {
g_warning ("Failed to open history database: %s", error->message);
+ g_clear_object (&history_db);
goto out;
}
@@ -793,8 +794,10 @@ migrate_history_to_firefox_sync_history (void)
out:
g_free (history_filename);
- if (history_db)
+ if (history_db) {
+ ephy_sqlite_connection_close (history_db);
g_object_unref (history_db);
+ }
if (statement)
g_object_unref (statement);
if (error)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]