Reference the hit test result before using it
It actually is owned by the WebKitWebView.
This commit is contained in:
parent
f81e76f595
commit
97a7ae9955
1 changed files with 4 additions and 2 deletions
|
@ -1629,8 +1629,10 @@ midori_view_ensure_link_uri (MidoriView* view,
|
|||
|
||||
event.x = ex;
|
||||
event.y = ey;
|
||||
katze_object_assign (view->hit_test, webkit_web_view_get_hit_test_result (
|
||||
WEBKIT_WEB_VIEW (view->web_view), &event));
|
||||
katze_object_assign (view->hit_test,
|
||||
g_object_ref (
|
||||
webkit_web_view_get_hit_test_result (
|
||||
WEBKIT_WEB_VIEW (view->web_view), &event)));
|
||||
katze_assign (view->link_uri,
|
||||
katze_object_get_string (view->hit_test, "link-uri"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue