author | zecke <zecke> | 2002-09-26 17:15:24 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-26 17:15:24 (UTC) |
commit | e7c2c104d59ef090fbc2f7dbcb052e22e0f5d591 (patch) (unidiff) | |
tree | e29c318cfd41e2ad7feb4834300e61788eda8c0e | |
parent | 99487852cca099f2ccaca611d0769af97ecfbc1f (diff) | |
download | opie-e7c2c104d59ef090fbc2f7dbcb052e22e0f5d591.zip opie-e7c2c104d59ef090fbc2f7dbcb052e22e0f5d591.tar.gz opie-e7c2c104d59ef090fbc2f7dbcb052e22e0f5d591.tar.bz2 |
temporaray work around for a crash
Double deletion of the setMainWindow happens....
-rw-r--r-- | noncore/graphics/drawpad/main.cpp | 8 |
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 | |||
@@ -6,21 +6,23 @@ | |||
6 | * * | 6 | * * |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | * * | 11 | * * |
12 | ***************************************************************************/ | 12 | ***************************************************************************/ |
13 | 13 | ||
14 | #include "drawpad.h" | 14 | #include "drawpad.h" |
15 | 15 | ||
16 | #include <qpe/qpeapplication.h> | 16 | #include <qpe/qpeapplication.h> |
17 | 17 | ||
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; | 22 | DrawPad *mw = new DrawPad();; |
23 | a.showMainWidget(&mw); | 23 | a.showMainWidget(mw ); |
24 | 24 | ||
25 | |||
25 | return a.exec(); | 26 | return a.exec(); |
27 | delete mw; | ||
26 | } | 28 | } |