Skip to content

Commit

Permalink
Do not take ownership of the CookieManager so it doesn't get destroyed.
Browse files Browse the repository at this point in the history
  • Loading branch information
magomez committed Sep 22, 2015
1 parent 75b2742 commit 70263ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/WebKit2/UIProcess/wpe/AtholShell/AtholShell.cpp
Expand Up @@ -157,8 +157,8 @@ gpointer AtholShell::launchWPE(gpointer data)
gchar *cookieDatabasePath = g_build_filename(g_get_user_cache_dir(), "cookies.db", nullptr);
auto path = adoptWK(WKStringCreateWithUTF8CString(cookieDatabasePath));
g_free(cookieDatabasePath);
auto cookieManager = adoptWK(WKContextGetCookieManager(context.get()));
WKCookieManagerSetCookiePersistentStorage(cookieManager.get(), path.get(), kWKCookieStorageTypeSQLite);
auto cookieManager = WKContextGetCookieManager(context.get());
WKCookieManagerSetCookiePersistentStorage(cookieManager, path.get(), kWKCookieStorageTypeSQLite);
}

shell.m_view = adoptWK(WKViewCreate(context.get(), pageGroup.get()));
Expand Down

0 comments on commit 70263ba

Please sign in to comment.