https://bugs.webkit.org/show_bug.cgi?id=83752
Reviewed by Martin Robinson.
* UIProcess/API/gtk/WebKitWebContext.cpp:
(createDefaultWebContext):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114226
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-04-15 Carlos Garcia Campos <cgarcia@igalia.com>
+
+ [GTK] Use GRefPtr to delete the default web context in WebKit2 GTK+
+ https://bugs.webkit.org/show_bug.cgi?id=83752
+
+ Reviewed by Martin Robinson.
+
+ * UIProcess/API/gtk/WebKitWebContext.cpp:
+ (createDefaultWebContext):
+
2012-04-13 Jer Noble <jer.noble@apple.com>
Video at apple.com gets standard controls in addition to custom controls after returning from full screen
static gpointer createDefaultWebContext(gpointer)
{
- WebKitWebContext* webContext = WEBKIT_WEB_CONTEXT(g_object_new(WEBKIT_TYPE_WEB_CONTEXT, NULL));
+ static GRefPtr<WebKitWebContext> webContext = adoptGRef(WEBKIT_WEB_CONTEXT(g_object_new(WEBKIT_TYPE_WEB_CONTEXT, NULL)));
webContext->priv->context = WKContextGetSharedProcessContext();
WKContextSetCacheModel(webContext->priv->context.get(), kWKCacheModelPrimaryWebBrowser);
- attachDownloadClientToContext(webContext);
-
- return webContext;
+ attachDownloadClientToContext(webContext.get());
+ return webContext.get();
}
/**