From 0769fc5182b211dea276b5895987dfc4bc133995 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Tue, 25 May 2010 22:24:08 +0000 Subject: Fixed some memory leaks in the theme editor git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26292 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/main.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 utils/themeeditor/main.cpp (limited to 'utils/themeeditor/main.cpp') diff --git a/utils/themeeditor/main.cpp b/utils/themeeditor/main.cpp new file mode 100644 index 0000000..3d7a01e --- /dev/null +++ b/utils/themeeditor/main.cpp @@ -0,0 +1,31 @@ +namespace wps +{ + extern "C" + { +#include "skin_parser.h" +#include "skin_debug.h" + } +} + +#include +#include + +#include +#include +#include + +int main(int argc, char* argv[]) +{ + + char* doc = "%Vd(U)\n\n%?bl(test,3,5,2,1)"; + + struct wps::skin_element* test = wps::skin_parse(doc); + + wps::skin_debug_tree(test); + + wps::skin_free_tree(test); + + + return 0; +} + -- cgit v1.1