summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/noncore/graphics/drawpad/main.cpp b/noncore/graphics/drawpad/main.cpp
index cb02301..ec628cc 100644
--- a/noncore/graphics/drawpad/main.cpp
+++ b/noncore/graphics/drawpad/main.cpp
@@ -19,10 +19,9 @@ int main(int argc, char **argv)
{
QPEApplication a(argc, argv);
- DrawPad *mw = new DrawPad();;
- a.showMainWidget(mw );
+ DrawPad mw; // = new DrawPad();;
+ a.showMainWidget(&mw );
return a.exec();
- delete mw;
}