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 } |