diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-01-28 17:19:53 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-01-28 17:19:53 +0100 |
commit | 67a65b186409fe9e30d10403a00db9b0fa1e9388 (patch) | |
tree | e157c293225456dd601c26b3e244c4b8fe5ea55b /src | |
parent | 54f745d9d2f48be543007716d9773033f2b62bac (diff) |
check for url in DilloHtml::loadImages
The url field can be NULL for images that have display:none set, causing
a crash when checking "Load Images" later.
Diffstat (limited to 'src')
-rw-r--r-- | src/html.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc index 6ae08f4a..f3d2bec0 100644 --- a/src/html.cc +++ b/src/html.cc @@ -644,7 +644,7 @@ void DilloHtml::loadImages (const DilloUrl *pattern) for (int i = 0; i < images->size(); i++) { DilloHtmlImage *hi = images->get(i); - if (hi->image) { + if (hi->image && hi->url) { if ((!pattern) || (!a_Url_cmp(hi->url, pattern))) { if (Html_load_image(bw, hi->url, requester, hi->image)) { a_Image_unref (hi->image); |