[GTK] Crash after getting web view context property with g_object_get
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Apr 2014 13:36:21 +0000 (13:36 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Apr 2014 13:36:21 +0000 (13:36 +0000)
commit32cd9081743778bb69124f022c1b6842f961d59a
treef340ec6a2bfe19248fd8d9b8f56e180bd69fa57b
parent0cedc3c04afc983bf42c2345b4a462308f0f9a6a
[GTK] Crash after getting web view context property with g_object_get
https://bugs.webkit.org/show_bug.cgi?id=131983

Reviewed by Philippe Normand.

The problem is that the getter is using g_value_take_object() and
the default context is destroyed when the caller releases its ref.

* UIProcess/API/gtk/WebKitWebView.cpp:
(webkitWebViewGetProperty): Use g_value_set_object() instead of
g_value_take_object().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp