summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/main.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-05-25 22:24:08 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-05-25 22:24:08 +0000
commit0769fc5182b211dea276b5895987dfc4bc133995 (patch)
treeaa6c723a2281039637780278d06e168e5852c70e /utils/themeeditor/main.cpp
parentff9474e558a6108a3c9d42260043016ad11971ef (diff)
downloadrockbox-0769fc5182b211dea276b5895987dfc4bc133995.tar.gz
rockbox-0769fc5182b211dea276b5895987dfc4bc133995.tar.bz2
rockbox-0769fc5182b211dea276b5895987dfc4bc133995.zip
Fixed some memory leaks in the theme editor
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26292 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/main.cpp')
-rw-r--r--utils/themeeditor/main.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/utils/themeeditor/main.cpp b/utils/themeeditor/main.cpp
new file mode 100644
index 0000000000..3d7a01e7f2
--- /dev/null
+++ b/utils/themeeditor/main.cpp
@@ -0,0 +1,31 @@
+namespace wps
+{
+ extern "C"
+ {
+#include "skin_parser.h"
+#include "skin_debug.h"
+ }
+}
+
+#include <cstdlib>
+#include <cstdio>
+
+#include <QtGui/QApplication>
+#include <QFileSystemModel>
+#include <QTreeView>
+
+int main(int argc, char* argv[])
+{
+
+ char* doc = "%Vd(U)\n\n%?bl(test,3,5,2,1)<param2|param3>";
+
+ struct wps::skin_element* test = wps::skin_parse(doc);
+
+ wps::skin_debug_tree(test);
+
+ wps::skin_free_tree(test);
+
+
+ return 0;
+}
+