diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-30 15:39:07 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-30 15:39:07 (EDT) |
commit | 8b7a38c4c58df7cdc5de4daf0991ae794eb1b96d (patch) | |
tree | 96b011894494694b3e65fd68e98a3b0611d54eae /src | |
parent | d5d032cf6644dd8b8e2bd50d4aef9ed478c04784 (diff) | |
download | marquee-8b7a38c4c58df7cdc5de4daf0991ae794eb1b96d.zip marquee-8b7a38c4c58df7cdc5de4daf0991ae794eb1b96d.tar.gz marquee-8b7a38c4c58df7cdc5de4daf0991ae794eb1b96d.tar.bz2 |
mq_web_view_scheme_set_methods(): Always call finalize() method
Diffstat (limited to 'src')
-rw-r--r-- | src/web-view-schemes/methods.c | 8 |
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; |