[epiphany/gnome-3-22] embed-shell: fix criticals in delayed_thumbnail_update_data_free
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-22] embed-shell: fix criticals in delayed_thumbnail_update_data_free
- Date: Tue, 14 Feb 2017 04:52:59 +0000 (UTC)
commit 305b4f8905747785f7683161cca38bb7bc449ed4
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Feb 13 22:51:34 2017 -0600
embed-shell: fix criticals in delayed_thumbnail_update_data_free
embed/ephy-embed-shell.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 96cd3de..e31a4f6 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -343,7 +343,8 @@ delayed_thumbnail_update_data_new (EphyWebExtensionProxy *extension,
static void
delayed_thumbnail_update_data_free (DelayedThumbnailUpdateData *data)
{
- g_object_remove_weak_pointer (G_OBJECT (data->extension), (gpointer *)&data->extension);
+ if (data->extension)
+ g_object_remove_weak_pointer (G_OBJECT (data->extension), (gpointer *)&data->extension);
g_free (data->url);
g_free (data->path);
g_free (data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]