summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/main.cpp8
1 files changed, 5 insertions, 3 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
@@ -21,6 +21,8 @@ int main(int argc, char **argv)
- DrawPad mw;
- a.showMainWidget(&mw);
-
+ DrawPad *mw = new DrawPad();;
+ a.showMainWidget(mw );
+
+
return a.exec();
+ delete mw;
}