diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-30 13:37:35 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-30 13:37:35 (EDT) |
commit | d428363c809a0c127a8673cc79509b0e40c735b4 (patch) | |
tree | 7d76518e5d507fda833e214d59a6646296e9ec9e /src | |
parent | 8979e7f6196ccb572df3f059062cff998b842d64 (diff) | |
download | marquee-d428363c809a0c127a8673cc79509b0e40c735b4.zip marquee-d428363c809a0c127a8673cc79509b0e40c735b4.tar.gz marquee-d428363c809a0c127a8673cc79509b0e40c735b4.tar.bz2 |
mq_web_view_scheme_set_methods(): Don't dereference NULL pointer
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; |