summaryrefslogtreecommitdiff
authorzecke <zecke>2002-09-26 17:15:24 (UTC)
committer zecke <zecke>2002-09-26 17:15:24 (UTC)
commite7c2c104d59ef090fbc2f7dbcb052e22e0f5d591 (patch) (side-by-side diff)
treee29c318cfd41e2ad7feb4834300e61788eda8c0e
parent99487852cca099f2ccaca611d0769af97ecfbc1f (diff)
downloadopie-e7c2c104d59ef090fbc2f7dbcb052e22e0f5d591.zip
opie-e7c2c104d59ef090fbc2f7dbcb052e22e0f5d591.tar.gz
opie-e7c2c104d59ef090fbc2f7dbcb052e22e0f5d591.tar.bz2
temporaray work around for a crash
Double deletion of the setMainWindow happens....
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
@@ -6,21 +6,23 @@
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#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;
}