forked from len0rd/rockbox
Fixed some memory leaks in the theme editor
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26292 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ff9474e558
commit
0769fc5182
8 changed files with 76 additions and 26 deletions
31
utils/themeeditor/main.cpp
Normal file
31
utils/themeeditor/main.cpp
Normal file
|
@ -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;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue