javauis/lcdui_akn/lcdui/src/CMIDCanvasGraphicsItemPainter.cpp
branchRCL_3
changeset 60 6c158198356e
parent 59 e5618cc85d74
--- a/javauis/lcdui_akn/lcdui/src/CMIDCanvasGraphicsItemPainter.cpp	Thu Jul 15 18:31:06 2010 +0300
+++ b/javauis/lcdui_akn/lcdui/src/CMIDCanvasGraphicsItemPainter.cpp	Thu Aug 19 09:48:13 2010 +0300
@@ -77,6 +77,12 @@
 {
     DEBUG("CMIDCanvasGraphicsItemPainter::~CMIDCanvasGraphicsItemPainter +");
 
+    // Removes the parent item from component container
+    if (iItem)
+    {
+        iItem->DeregisterCanvasGraphicsItem();
+    }
+
     // Release buffers
     ResetBuffers();
 
@@ -85,7 +91,7 @@
     {
         iDirectContainer->MdcRemoveContent(this);
     }
-
+    
     iItem = NULL;
 
     DEBUG("CMIDCanvasGraphicsItemPainter::~CMIDCanvasGraphicsItemPainter -");
@@ -291,7 +297,7 @@
 void CMIDCanvasGraphicsItemPainter::Dispose()
 {
     DEBUG("CMIDCanvasGraphicsItemPainter::Dispose +");
-
+    
     delete this;
 
     DEBUG("CMIDCanvasGraphicsItemPainter::Dispose -");