windowing/windowserverplugins/openwfc/src/openwfcwrapper.cpp
branchRCL_3
changeset 164 25ffed67c7ef
parent 163 bbf46f59e123
--- a/windowing/windowserverplugins/openwfc/src/openwfcwrapper.cpp	Tue Aug 31 16:31:06 2010 +0300
+++ b/windowing/windowserverplugins/openwfc/src/openwfcwrapper.cpp	Wed Sep 01 12:39:21 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -340,7 +340,10 @@
 	    {	    
 	    CElementWrapper* element=static_cast<CElementWrapper*>(aElement);
 	    RemoveElementFromSceneList(element);
-	    delete element;
+	    if (!(element->UpdateFlags()&CElementWrapper::EUpdate_SceneCommited))
+	          {
+	             delete element;
+	          }
 	    }
 	}