[epiphany/overview] ephy-snapshot-service: safeguard a g_object_unref()
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview] ephy-snapshot-service: safeguard a g_object_unref()
- Date: Mon, 20 Aug 2012 16:12:24 +0000 (UTC)
commit 7af47cdd2a73eebe8682c4f4d39605870bd12b4c
Author: Claudio Saavedra <csaavedra igalia com>
Date: Sun Aug 19 18:19:02 2012 +0300
ephy-snapshot-service: safeguard a g_object_unref()
lib/widgets/ephy-overview-store.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/widgets/ephy-overview-store.c b/lib/widgets/ephy-overview-store.c
index cd5e8b2..60c4cd8 100644
--- a/lib/widgets/ephy-overview-store.c
+++ b/lib/widgets/ephy-overview-store.c
@@ -499,7 +499,8 @@ ephy_overview_store_needs_snapshot (EphyOverviewStore *store,
in the row, then this row needs a snapshot. */
needs_snapshot = (icon == store->priv->default_icon && cancellable == NULL);
- g_object_unref (icon);
+ if (icon)
+ g_object_unref (icon);
if (cancellable)
g_object_unref (cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]