diff options
Diffstat (limited to 'lib/history')
-rw-r--r-- | lib/history/ephy-history-service-hosts-table.c | 2 | ||||
-rw-r--r-- | lib/history/ephy-history-service-urls-table.c | 2 | ||||
-rw-r--r-- | lib/history/ephy-history-service-visits-table.c | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/lib/history/ephy-history-service-hosts-table.c b/lib/history/ephy-history-service-hosts-table.c index 04be063b0..0a3aa862c 100644 --- a/lib/history/ephy-history-service-hosts-table.c +++ b/lib/history/ephy-history-service-hosts-table.c @@ -300,7 +300,6 @@ ephy_history_service_find_host_rows (EphyHistoryService *self, EphyHistoryQuery if (error) { g_error ("Could not build hosts table query statement: %s", error->message); g_error_free (error); - g_object_unref (statement); return NULL; } if (query->from > 0) { @@ -451,7 +450,6 @@ ephy_history_service_delete_host_row (EphyHistoryService *self, if (error) { g_error ("Could not build urls table query statement: %s", error->message); g_error_free (error); - g_object_unref (statement); return; } diff --git a/lib/history/ephy-history-service-urls-table.c b/lib/history/ephy-history-service-urls-table.c index f0d445150..b37d58fdf 100644 --- a/lib/history/ephy-history-service-urls-table.c +++ b/lib/history/ephy-history-service-urls-table.c @@ -295,7 +295,6 @@ ephy_history_service_find_url_rows (EphyHistoryService *self, EphyHistoryQuery * if (error) { g_error ("Could not build urls table query statement: %s", error->message); g_error_free (error); - g_object_unref (statement); return NULL; } @@ -392,7 +391,6 @@ ephy_history_service_delete_url (EphyHistoryService *self, EphyHistoryURL *url) if (error) { g_error ("Could not build urls table query statement: %s", error->message); g_error_free (error); - g_object_unref (statement); return; } diff --git a/lib/history/ephy-history-service-visits-table.c b/lib/history/ephy-history-service-visits-table.c index 0beaa2325..1b9e5b3d4 100644 --- a/lib/history/ephy-history-service-visits-table.c +++ b/lib/history/ephy-history-service-visits-table.c @@ -155,7 +155,7 @@ ephy_history_service_find_visit_rows (EphyHistoryService *self, EphyHistoryQuery if (error) { g_error ("Could not build visits table query statement: %s", error->message); g_error_free (error); - g_object_unref (statement); + return NULL; } if (query->from >= 0) { |