[epiphany/history-rewrite: 41/45] Free errors instead of unrefing them in a few places
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/history-rewrite: 41/45] Free errors instead of unrefing them in a few places
- Date: Wed, 24 Aug 2011 19:42:45 +0000 (UTC)
commit b53fa0dc5efc920ea75728123d333d9e2aa69a65
Author: Claudio Saavedra <csaavedra igalia com>
Date: Sat Jul 23 18:42:20 2011 +0300
Free errors instead of unrefing them in a few places
lib/history/ephy-history-service-urls-table.c | 8 ++++----
lib/history/ephy-history-service-visits-table.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/lib/history/ephy-history-service-urls-table.c b/lib/history/ephy-history-service-urls-table.c
index c67008e..af226ec 100644
--- a/lib/history/ephy-history-service-urls-table.c
+++ b/lib/history/ephy-history-service-urls-table.c
@@ -147,14 +147,14 @@ ephy_history_service_add_url_row (EphyHistoryService *self, EphyHistoryURL *url)
ephy_sqlite_statement_bind_int (statement, 4, url->last_visit_time, &error) == FALSE ||
ephy_sqlite_statement_bind_double (statement, 5, url->zoom_level, &error) == FALSE) {
g_error ("Could not insert URL into urls table: %s", error->message);
- g_object_unref (error);
+ g_error_free (error);
return;
}
ephy_sqlite_statement_step (statement, &error);
if (error) {
g_error ("Could not insert URL into urls table: %s", error->message);
- g_object_unref (error);
+ g_error_free (error);
} else {
url->id = ephy_sqlite_connection_get_last_insert_id (priv->history_database);
}
@@ -188,14 +188,14 @@ ephy_history_service_update_url_row (EphyHistoryService *self, EphyHistoryURL *u
ephy_sqlite_statement_bind_double (statement, 4, url->zoom_level, &error) == FALSE ||
ephy_sqlite_statement_bind_int (statement, 5, url->id, &error) == FALSE) {
g_error ("Could not modify URL in urls table: %s", error->message);
- g_object_unref (error);
+ g_error_free (error);
return;
}
ephy_sqlite_statement_step (statement, &error);
if (error) {
g_error ("Could not modify URL in urls table: %s", error->message);
- g_object_unref (error);
+ g_error_free (error);
}
g_object_unref (statement);
}
diff --git a/lib/history/ephy-history-service-visits-table.c b/lib/history/ephy-history-service-visits-table.c
index 748a5bd..0777ac2 100644
--- a/lib/history/ephy-history-service-visits-table.c
+++ b/lib/history/ephy-history-service-visits-table.c
@@ -78,7 +78,7 @@ ephy_history_service_add_visit_row (EphyHistoryService *self, EphyHistoryPageVis
ephy_sqlite_statement_step (statement, &error);
if (error) {
g_error ("Could not insert URL into visits table: %s", error->message);
- g_object_unref (error);
+ g_error_free (error);
} else {
visit->id = ephy_sqlite_connection_get_last_insert_id (priv->history_database);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]