projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13e0c6a
)
elementary-1.7/map: Fix memory leaks like in 84087.
author
Stefan Schmidt
<stefan@datenfreihafen.org>
Tue, 19 Feb 2013 10:03:09 +0000
(10:03 +0000)
committer
Stefan Schmidt
<stefan@datenfreihafen.org>
Tue, 19 Feb 2013 10:03:09 +0000
(10:03 +0000)
The code was a bit different here but we still had leaks. Fix the code
to free the buffer we allocated in all cases.
SVN revision: 84100
src/lib/elm_map.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_map.c
b/src/lib/elm_map.c
index
40dccf6
..
ac4a820
100644
(file)
--- a/
src/lib/elm_map.c
+++ b/
src/lib/elm_map.c
@@
-2944,10
+2944,8
@@
_kml_parse(Elm_Map_Route *r)
{
eina_simple_xml_parse
(buf, sz, EINA_TRUE, _xml_route_dump_cb, &dump);
- free(buf);
}
- else
- free(buf);
+ free(buf);
}
}
fclose(f);
@@
-3037,8
+3035,8
@@
_name_parse(Elm_Map_Name *n)
{
eina_simple_xml_parse
(buf, sz, EINA_TRUE, _xml_name_dump_cb, &dump);
- free(buf);
}
+ free(buf);
}
}
fclose(f);