fixup! fix: coverity warnings (#3168) (#3193)

This commit is contained in:
Charles Kerr 2022-06-04 11:33:03 -05:00 committed by GitHub
parent 7f1e12f220
commit 2ff4041074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -94,7 +94,10 @@ bool favicon_web_done_idle_cb(std::unique_ptr<favicon_data> fav)
}
// Not released into the next web request, means we're done trying (even if `pixbuf` is still invalid)
fav->func(pixbuf);
if (fav != nullptr)
{
fav->func(pixbuf);
}
return false;
}