webengine/webkitutils/ToolBar/ToolBar.cpp
changeset 5 10e98eab6f85
parent 0 dd21522fd290
child 10 a359256acfc6
equal deleted inserted replaced
1:7c90e6132015 5:10e98eab6f85
   521 // CToolBar::CToolBar()
   521 // CToolBar::CToolBar()
   522 // Destructor
   522 // Destructor
   523 // ----------------------------------------------------------------------------
   523 // ----------------------------------------------------------------------------
   524 CToolBar::~CToolBar()
   524 CToolBar::~CToolBar()
   525     {
   525     {
   526     iToolBarCallback->SetAndUpdateCursorPosition(iOrigCursorPos);
   526     if( iToolBarCallback )
       
   527         {
       
   528         iToolBarCallback->SetAndUpdateCursorPosition(iOrigCursorPos);
       
   529         }
   527     if (iButtonArray != NULL)
   530     if (iButtonArray != NULL)
   528         {
   531         {
   529         iButtonArray->ResetAndDestroy();
   532         iButtonArray->ResetAndDestroy();
   530         }
   533         }
   531     delete iButtonArray;
   534     delete iButtonArray;