[epiphany] Allocate PermissionRequestData with g_slice_new since it's freed with g_slice_free
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Allocate PermissionRequestData with g_slice_new since it's freed with g_slice_free
- Date: Sat, 4 Mar 2017 18:32:52 +0000 (UTC)
commit 6b6c6741c246391e3a8a85af359486cae6ebdfb5
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Fri Mar 3 10:11:18 2017 +0100
Allocate PermissionRequestData with g_slice_new since it's freed with g_slice_free
https://bugzilla.gnome.org/show_bug.cgi?id=779180
embed/ephy-web-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index caca39e..92ece2e 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1299,7 +1299,7 @@ permission_request_data_new (EphyWebView *web_view,
const char *origin)
{
PermissionRequestData *data;
- data = g_new (PermissionRequestData, 1);
+ data = g_slice_new (PermissionRequestData);
data->web_view = web_view;
/* Ref the decision to keep it alive while we decide */
data->request = g_object_ref (request);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]