windowing/windowserverplugins/openwfc/src/openwfcwrapper.cpp
changeset 45 36b2e23a8629
parent 36 01a6848ebfd7
child 164 25ffed67c7ef
equal deleted inserted replaced
36:01a6848ebfd7 45:36b2e23a8629
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   338 	{		
   338 	{		
   339 	if(aElement)
   339 	if(aElement)
   340 	    {	    
   340 	    {	    
   341 	    CElementWrapper* element=static_cast<CElementWrapper*>(aElement);
   341 	    CElementWrapper* element=static_cast<CElementWrapper*>(aElement);
   342 	    RemoveElementFromSceneList(element);
   342 	    RemoveElementFromSceneList(element);
   343 	    if (!(element->UpdateFlags()&CElementWrapper::EUpdate_SceneCommited))
   343 	    delete element;
   344 	          {
       
   345 	             delete element;
       
   346 	          }
       
   347 	    }
   344 	    }
   348 	}
   345 	}
   349 
   346 
   350 void COpenWfcWrapper::Compose(TRequestStatus* aCompleted)
   347 void COpenWfcWrapper::Compose(TRequestStatus* aCompleted)
   351 	{
   348 	{