summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/drawpad/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/graphics/drawpad/main.cpp b/noncore/graphics/drawpad/main.cpp
index b362962..cb02301 100644
--- a/noncore/graphics/drawpad/main.cpp
+++ b/noncore/graphics/drawpad/main.cpp
@@ -14,13 +14,15 @@
#include "drawpad.h"
#include <qpe/qpeapplication.h>
int main(int argc, char **argv)
{
QPEApplication a(argc, argv);
- DrawPad mw;
- a.showMainWidget(&mw);
+ DrawPad *mw = new DrawPad();;
+ a.showMainWidget(mw );
+
return a.exec();
+ delete mw;
}