widgets/widgetapp/src/WidgetUiWindow.cpp
changeset 13 10e98eab6f85
parent 8 7c90e6132015
child 16 a359256acfc6
--- a/widgets/widgetapp/src/WidgetUiWindow.cpp	Fri May 08 08:25:06 2009 +0300
+++ b/widgets/widgetapp/src/WidgetUiWindow.cpp	Fri Jul 03 15:54:40 2009 +0100
@@ -503,7 +503,7 @@
 
         if (aCurrent)
             {
-            //UpdateCba();
+            UpdateCba();
             Engine()->MakeVisible( iWidgetLoaded );
             // redraw incase the orientation changed while in the background
             Relayout();
@@ -671,6 +671,7 @@
     RWidgetRegistryClientSession clientSession = iWindowManager.WidgetUIClientSession();
     CWidgetPropertyValue* propValue = clientSession.GetWidgetPropertyValueL( iUid, EMiniViewEnable );
     TInt hasMiniview = *propValue;
+    delete propValue;
     return hasMiniview;
     }
 
@@ -686,12 +687,15 @@
     RWidgetRegistryClientSession& widgetRegistry
                 = iWindowManager.WidgetUIClientSession();
 
-    TInt networkAccess = *(widgetRegistry.GetWidgetPropertyValueL(
-                                        iUid, EAllowNetworkAccess ));
-    TInt fullAccess = *(widgetRegistry.GetWidgetPropertyValueL(
-                                        iUid, EAllowFullAccess ));
-    TInt blanketPermission = *(widgetRegistry.GetWidgetPropertyValueL(
-                                        iUid, EBlanketPermGranted ));
+    CWidgetPropertyValue* propValue = widgetRegistry.GetWidgetPropertyValueL( iUid, EAllowNetworkAccess );
+    TInt networkAccess = *propValue;
+    delete propValue;
+    propValue = widgetRegistry.GetWidgetPropertyValueL( iUid, EAllowFullAccess );
+    TInt fullAccess = *propValue;
+    delete propValue;
+    propValue = widgetRegistry.GetWidgetPropertyValueL( iUid, EBlanketPermGranted );
+    TInt blanketPermission = *propValue;
+    delete propValue;
     TInt inMiniView = widgetRegistry.IsWidgetInMiniView( iUid);
     if ( !( networkAccess || fullAccess )  ||
         ( inMiniView && !blanketPermission  ))