[epiphany] web-overview-model: Fix crashes introduced by 1fbc5740
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] web-overview-model: Fix crashes introduced by 1fbc5740
- Date: Sat, 2 Mar 2019 17:02:18 +0000 (UTC)
commit 9d0ff7ca0d2732c0752073b5eeafca6ebe5a4dbf
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat Mar 2 11:00:51 2019 -0600
web-overview-model: Fix crashes introduced by 1fbc5740
Maybe doing autoptr work when tired is not such a good idea.
embed/web-extension/ephy-web-overview-model.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/embed/web-extension/ephy-web-overview-model.c b/embed/web-extension/ephy-web-overview-model.c
index fe648fdb4..d36b4856d 100644
--- a/embed/web-extension/ephy-web-overview-model.c
+++ b/embed/web-extension/ephy-web-overview-model.c
@@ -108,7 +108,7 @@ ephy_web_overview_model_urls_to_js_value (EphyWebOverviewModel *model,
value = jsc_value_new_string (js_context, item->title);
jsc_value_object_set_property (js_item, "title", value);
- g_ptr_array_add (urls, js_item);
+ g_ptr_array_add (urls, g_steal_pointer (&js_item));
}
return urls;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]