[Xfce4-commits] <midori:master> Reference the hit test result before using it

Christian Dywan noreply at xfce.org
Tue Nov 23 23:00:02 CET 2010


Updating branch refs/heads/master
         to 97a7ae9955d4264f922452d6933f3a0e1e4b03f6 (commit)
       from f81e76f595246dfa38380259b2caeba31fa7b112 (commit)

commit 97a7ae9955d4264f922452d6933f3a0e1e4b03f6
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Nov 23 22:57:47 2010 +0100

    Reference the hit test result before using it
    
    It actually is owned by the WebKitWebView.

 midori/midori-view.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 39172e2..14da6ed 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -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"));
     }



More information about the Xfce4-commits mailing list