From 867b726401167a19a591bbd577982b060b2a583f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 31 Oct 2017 02:35:39 -0400 Subject: mq_web_view_view_source_scheme_methods.context_menu(): s/normal/view_source/ Fixes segmentation fault on right-click. --- diff --git a/src/web-view-schemes/view-source.c b/src/web-view-schemes/view-source.c index f1dba96..d0e9b28 100644 --- a/src/web-view-schemes/view-source.c +++ b/src/web-view-schemes/view-source.c @@ -185,11 +185,11 @@ context_menu(MqWebView *web_view, MqWebViewScheme G_GNUC_UNUSED *scheme, /* Get the reported context (which isn't very descriptive) and save the * hit test result for use by action callbacks. */ context = webkit_hit_test_result_get_context(hit_test_result); - if (scheme->normal.hit_test_result) { - g_object_unref(scheme->normal.hit_test_result); + if (scheme->view_source.hit_test_result) { + g_object_unref(scheme->view_source.hit_test_result); } - scheme->normal.hit_test_result = hit_test_result; - g_object_ref(scheme->normal.hit_test_result); + scheme->view_source.hit_test_result = hit_test_result; + g_object_ref(scheme->view_source.hit_test_result); context_handled = FALSE; /* Build the context menu. */ -- cgit v0.9.1