uiacceltk/hitchcock/Client/src/alftexturegroup.cpp
branchRCL_3
changeset 3 d8a3531bc6b8
parent 0 15bf7259bb7c
equal deleted inserted replaced
0:15bf7259bb7c 3:d8a3531bc6b8
   107 // ---------------------------------------------------------------------------
   107 // ---------------------------------------------------------------------------
   108 // Destructor
   108 // Destructor
   109 // ---------------------------------------------------------------------------
   109 // ---------------------------------------------------------------------------
   110 //
   110 //
   111 EXPORT_C CAlfTextureGroup::~CAlfTextureGroup()
   111 EXPORT_C CAlfTextureGroup::~CAlfTextureGroup()
   112 	{
   112     {
   113     while (Count())
   113     if ( iData )
   114         {
   114         {
   115         RemoveTexture(Texture(Count()-1));
   115         while (Count())
   116         }
   116             {
   117 
   117             RemoveTexture(Texture(Count()-1));
   118 	if ( iData )
   118             }
   119 	    {
   119     
   120 	    iData->iLoadObserverQueue.Close();	
   120         iData->iLoadObserverQueue.Close();	
   121 	    iData->iTextures.Close();		    
   121 	iData->iTextures.Close();		    
   122 	    
   122 	    
   123 	    delete iData->iTextureLoadObserver;
   123 	delete iData->iTextureLoadObserver;
   124 	    iData->iTextureLoadObserver = NULL;
   124 	iData->iTextureLoadObserver = NULL;
   125 	    }	
   125 	}	
   126 
   126 
   127 	delete iData;
   127     delete iData;
   128 	}
   128     }
       
   129 
   129 // ---------------------------------------------------------------------------
   130 // ---------------------------------------------------------------------------
   130 // NewL
   131 // NewL
   131 // ---------------------------------------------------------------------------
   132 // ---------------------------------------------------------------------------
   132 //
   133 //
   133 EXPORT_C CAlfTextureGroup* CAlfTextureGroup::NewL(CAlfEnv& aEnv)
   134 EXPORT_C CAlfTextureGroup* CAlfTextureGroup::NewL(CAlfEnv& aEnv)