-rw-r--r-- | noncore/graphics/drawpad/main.cpp | 5 |
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 | |||
@@ -18,11 +18,10 @@ | |||
18 | int main(int argc, char **argv) | 18 | int main(int argc, char **argv) |
19 | { | 19 | { |
20 | QPEApplication a(argc, argv); | 20 | QPEApplication a(argc, argv); |
21 | 21 | ||
22 | DrawPad *mw = new DrawPad();; | 22 | DrawPad mw; // = new DrawPad();; |
23 | a.showMainWidget(mw ); | 23 | a.showMainWidget(&mw ); |
24 | 24 | ||
25 | 25 | ||
26 | return a.exec(); | 26 | return a.exec(); |
27 | delete mw; | ||
28 | } | 27 | } |