diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2012-09-18 18:33:55 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-18 18:57:52 -0400 |
commit | 7226a48a8cff5637b865b64e39a6a937c20e7677 (patch) | |
tree | b02d05fd8044293be5881d0300203cc4ef5e711d /main.c | |
parent | 0cf3a11645c8884d4e7b3b917ce5f983fbd7ff8c (diff) | |
download | subsurface-7226a48a8cff5637b865b64e39a6a937c20e7677.tar.gz |
Call xmlCleanupParser only once - when we are done with libxml
Calling xmlCleanupParser in parse-xml.c:parse_xml_buffer()
caused massive memory corruption mostly affecting gtk's FileChooser
dialogs and the application menu.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -253,5 +253,8 @@ int main(int argc, char **argv) show_dive_info(NULL); run_ui(); exit_ui(); + + parse_xml_exit(); + return 0; } |