diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-01-28 17:14:05 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-01-28 17:14:05 +0100 |
commit | b2b34a8a570da1b0812230fe4e73fff1ac5cbd1f (patch) | |
tree | 8fd02e0baebb818d13ac999f6ce68b3839d6d753 /src | |
parent | 951fde7f55e2c74f58af69c71126c48e30425581 (diff) |
fix image leak introduced in 8214199c2703
Diffstat (limited to 'src')
-rw-r--r-- | src/html.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc index 6622d1d0..af6d22c4 100644 --- a/src/html.cc +++ b/src/html.cc @@ -2112,8 +2112,10 @@ DilloImage *a_Html_image_add(DilloHtml *html, DilloUrl *url) !dStrAsciiCasecmp(URL_SCHEME(url), "data") || (a_Capi_get_flags_with_redirection(url) & CAPI_IsCached); - if (load_now && Html_load_image(html->bw, url, html->page_url, image)) + if (load_now && Html_load_image(html->bw, url, html->page_url, image)) { + a_Image_unref(hi->image); hi->image = NULL; + } return image; } |