summaryrefslogtreecommitdiffstats
path: root/src/web-view-schemes
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-30 15:39:07 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-30 15:39:07 (EDT)
commit8b7a38c4c58df7cdc5de4daf0991ae794eb1b96d (patch)
tree96b011894494694b3e65fd68e98a3b0611d54eae /src/web-view-schemes
parentd5d032cf6644dd8b8e2bd50d4aef9ed478c04784 (diff)
downloadmarquee-8b7a38c4c58df7cdc5de4daf0991ae794eb1b96d.zip
marquee-8b7a38c4c58df7cdc5de4daf0991ae794eb1b96d.tar.gz
marquee-8b7a38c4c58df7cdc5de4daf0991ae794eb1b96d.tar.bz2
mq_web_view_scheme_set_methods(): Always call finalize() method
Diffstat (limited to 'src/web-view-schemes')
-rw-r--r--src/web-view-schemes/methods.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/web-view-schemes/methods.c b/src/web-view-schemes/methods.c
index e46f0b1..a0e4aa1 100644
--- a/src/web-view-schemes/methods.c
+++ b/src/web-view-schemes/methods.c
@@ -34,12 +34,10 @@ check_and_set_methods(MqWebViewSchemeMethods **methods,
MqWebViewSchemeMethods *scheme_methods)
{
if (scheme_methods->match_uri(uri)) {
- if (*methods != scheme_methods) {
- if (*methods) {
- (*methods)->finalize(scheme);
- }
- *methods = scheme_methods;
+ if (*methods) {
+ (*methods)->finalize(scheme);
}
+ *methods = scheme_methods;
return TRUE;
} else {
return FALSE;