Kaydet (Commit) 6b7bad4d authored tarafından Michael Meeks's avatar Michael Meeks

protect against double dispose.

Change-Id: Ib168188f7cfd8d4e0e6fe0617c5c9b7de840016b
üst 94e31983
...@@ -93,8 +93,12 @@ SvtIconChoiceCtrl::~SvtIconChoiceCtrl() ...@@ -93,8 +93,12 @@ SvtIconChoiceCtrl::~SvtIconChoiceCtrl()
void SvtIconChoiceCtrl::dispose() void SvtIconChoiceCtrl::dispose()
{ {
_pImp->CallEventListeners( VCLEVENT_OBJECT_DYING ); if (_pImp)
delete _pImp; {
_pImp->CallEventListeners( VCLEVENT_OBJECT_DYING );
delete _pImp;
_pImp = NULL;
}
Control::dispose(); Control::dispose();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment