Title: [239027] trunk/Tools
Revision
239027
Author
[email protected]
Date
2018-12-10 06:56:16 -0800 (Mon, 10 Dec 2018)

Log Message

[GTK] Don't use the slice allocator
https://bugs.webkit.org/show_bug.cgi?id=192360

Reviewed by Carlos Garcia Campos.

* MiniBrowser/gtk/main.c:
(aboutDataRequestFree):
(aboutDataRequestNew):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (239026 => 239027)


--- trunk/Tools/ChangeLog	2018-12-10 09:05:01 UTC (rev 239026)
+++ trunk/Tools/ChangeLog	2018-12-10 14:56:16 UTC (rev 239027)
@@ -1,3 +1,14 @@
+2018-12-10  Michael Catanzaro  <[email protected]>
+
+        [GTK] Don't use the slice allocator
+        https://bugs.webkit.org/show_bug.cgi?id=192360
+
+        Reviewed by Carlos Garcia Campos.
+
+        * MiniBrowser/gtk/main.c:
+        (aboutDataRequestFree):
+        (aboutDataRequestNew):
+
 2018-12-10  Tim Horton  <[email protected]>
 
         WKWebView should support custom tintColor

Modified: trunk/Tools/MiniBrowser/gtk/main.c (239026 => 239027)


--- trunk/Tools/MiniBrowser/gtk/main.c	2018-12-10 09:05:01 UTC (rev 239026)
+++ trunk/Tools/MiniBrowser/gtk/main.c	2018-12-10 14:56:16 UTC (rev 239027)
@@ -268,7 +268,7 @@
     if (request->dataMap)
         g_hash_table_destroy(request->dataMap);
 
-    g_slice_free(AboutDataRequest, request);
+    g_free(request);
 }
 
 static AboutDataRequest* aboutDataRequestNew(WebKitURISchemeRequest *uriRequest)
@@ -276,7 +276,7 @@
     if (!aboutDataRequestMap)
         aboutDataRequestMap = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, (GDestroyNotify)aboutDataRequestFree);
 
-    AboutDataRequest *request = g_slice_new0(AboutDataRequest);
+    AboutDataRequest *request = g_new0(AboutDataRequest, 1);
     request->request = g_object_ref(uriRequest);
     g_hash_table_insert(aboutDataRequestMap, GUINT_TO_POINTER(webkit_web_view_get_page_id(webkit_uri_scheme_request_get_web_view(request->request))), request);
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to