Mercurial > dillo_port1.3
changeset 192:90e5d5aa416e
- minor leak fix.
author | jcid |
---|---|
date | Sun, 27 Apr 2008 02:11:08 +0200 |
parents | d1e8eef4e894 |
children | 8aae0ee6e479 |
files | src/html.cc |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/html.cc Sat Apr 26 23:51:54 2008 +0200 +++ b/src/html.cc Sun Apr 27 02:11:08 2008 +0200 @@ -3054,6 +3054,9 @@ MSG_HTML("<area> unknown shape: \"%s\"\n", attrbuf); } + if (coords) + delete(coords); + if (shape) { if (Html_get_attr(html, tag, tagsize, "nohref")) { link = -1; @@ -3069,8 +3072,6 @@ } html->maps.addShapeToCurrentMap(shape, link); } - if (coords) - delete(coords); } /*