[epiphany/gnome-3-22] 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/gnome-3-22] Allocate PermissionRequestData with g_slice_new since it's freed with g_slice_free
- Date: Sat, 4 Mar 2017 18:33:38 +0000 (UTC)
commit f6cd6a9a0c00471f8fce97f484c98780df2e3ca7
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 7eeed2a..e906539 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1275,7 +1275,7 @@ permission_request_data_new (EphyWebView *web_view,
const char *host)
{
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]