src/hbcore/devicedialogbase/hbindicatorsymbian.cpp
changeset 21 4633027730f5
parent 2 06ff229162e9
child 23 e6ad4ef83b23
--- a/src/hbcore/devicedialogbase/hbindicatorsymbian.cpp	Tue Jul 06 14:36:53 2010 +0300
+++ b/src/hbcore/devicedialogbase/hbindicatorsymbian.cpp	Wed Aug 18 10:05:37 2010 +0300
@@ -267,8 +267,10 @@
 
 EXPORT_C CHbIndicatorSymbian* CHbIndicatorSymbian::NewL()
     {
-    CHbIndicatorSymbian *me = new CHbIndicatorSymbian();
+    CHbIndicatorSymbian *me = new (ELeave) CHbIndicatorSymbian();
+    CleanupStack::PushL(me);
     me->ConstructL();
+    CleanupStack::Pop(me);
     return me;
     }