diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/web-view-schemes/methods.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web-view-schemes/methods.c b/src/web-view-schemes/methods.c index f56cbfe..744acf0 100644 --- a/src/web-view-schemes/methods.c +++ b/src/web-view-schemes/methods.c @@ -30,7 +30,9 @@ check_and_set_methods(MqWebViewSchemeMethods **methods, { if (scheme_methods->match_uri(uri)) { if (*methods != scheme_methods) { - (*methods)->finalize(scheme); + if (*methods) { + (*methods)->finalize(scheme); + } *methods = scheme_methods; } return TRUE; |