summaryrefslogtreecommitdiffstats
path: root/src/web-view-schemes/methods.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/web-view-schemes/methods.c')
-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;