From c7aef4e0b8290c83c4b086bc87d76e86d48dae14 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 30 Oct 2017 12:51:31 -0400 Subject: mq_web_view_*_scheme_methods->finalize(): New methods --- (limited to 'src/web-view-schemes/normal.c') diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c index 034a363..4da54cc 100644 --- a/src/web-view-schemes/normal.c +++ b/src/web-view-schemes/normal.c @@ -32,6 +32,12 @@ #include "../tab-page.h" #include "../web-view.h" +static void +finalize(MqWebViewScheme *scheme) +{ + memset(&scheme->normal, 0, sizeof(scheme->normal)); +} + static gchar * rewrite_uri(MqWebView G_GNUC_UNUSED *web_view, MqWebViewScheme G_GNUC_UNUSED *scheme, const gchar *uri) @@ -764,6 +770,7 @@ save_file(MqWebView *web_view, MqWebViewScheme *scheme) } const MqWebViewSchemeMethods mq_web_view_normal_scheme_methods = { + .finalize = finalize, .rewrite_uri = rewrite_uri, .display_uri = display_uri, .context_menu = context_menu, -- cgit v0.9.1