webengine/wrtharvester/src/wrtharvesterregistryaccess.cpp
branchRCL_3
changeset 47 e1bea15f9a39
parent 35 1f3c3f2f5b0a
child 48 79859ed3eea9
equal deleted inserted replaced
46:30342f40acbf 47:e1bea15f9a39
    64 
    64 
    65         if ( SupportsMiniviewL( session, widgetInfo->iUid ) &&
    65         if ( SupportsMiniviewL( session, widgetInfo->iUid ) &&
    66         	   IsNokiaWidget( session, widgetInfo->iUid ))
    66         	   IsNokiaWidget( session, widgetInfo->iUid ))
    67             {
    67             {
    68             CWrtInfo* info = new CWrtInfo();
    68             CWrtInfo* info = new CWrtInfo();
       
    69             CleanupStack::PushL(info);
    69             info->iUid = widgetInfo->iUid;
    70             info->iUid = widgetInfo->iUid;
    70             info->iBundleId = WidgetPropertyL( session, widgetInfo->iUid, EBundleIdentifier );
    71             info->iBundleId = WidgetPropertyL( session, widgetInfo->iUid, EBundleIdentifier );
    71             info->iDisplayName = WidgetPropertyL( session, widgetInfo->iUid, EBundleDisplayName );
    72             info->iDisplayName = WidgetPropertyL( session, widgetInfo->iUid, EBundleDisplayName );
    72             info->iType = KS60Widget;
    73             info->iType = KS60Widget;
    73             aWidgetInfoArray.AppendL( info );
    74             aWidgetInfoArray.AppendL( info );
       
    75             CleanupStack::Pop(info);
    74             }
    76             }
    75         }
    77         }
    76     CleanupStack::PopAndDestroy( &session );
    78     CleanupStack::PopAndDestroy( &session );
    77     CleanupStack::PopAndDestroy( &widgetInfoArr );
    79     CleanupStack::PopAndDestroy( &widgetInfoArr );
    78     }
    80     }