summaryrefslogtreecommitdiffstats
path: root/src/web-view-schemes/view-source.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/web-view-schemes/view-source.c')
-rw-r--r--src/web-view-schemes/view-source.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/web-view-schemes/view-source.c b/src/web-view-schemes/view-source.c
index 667fc24..b9fb5a2 100644
--- a/src/web-view-schemes/view-source.c
+++ b/src/web-view-schemes/view-source.c
@@ -33,6 +33,12 @@
#include "../tab-page.h"
#include "../web-view.h"
+static void
+finalize(MqWebViewScheme *scheme)
+{
+ memset(&scheme->view_source, 0, sizeof(scheme->view_source));
+}
+
static gchar *
rewrite_uri(MqWebView *web_view, MqWebViewScheme *scheme, const gchar *uri)
{
@@ -208,6 +214,7 @@ save_file(MqWebView *web_view, MqWebViewScheme *scheme)
}
const MqWebViewSchemeMethods mq_web_view_view_source_scheme_methods = {
+ .finalize = finalize,
.rewrite_uri = rewrite_uri,
.display_uri = display_uri,
.context_menu = context_menu,