View | Details | Raw Unified | Return to issue 113608
Collapse All | Expand All

(-)a/main/svx/source/svdraw/svdobj.cxx (+6 lines)
Lines 487-494 void SdrObject::Free( SdrObject*& _rpObject ) Link Here
487
487
488
	SvxShape* pShape = pObject->getSvxShape();
488
	SvxShape* pShape = pObject->getSvxShape();
489
    if ( pShape && pShape->HasSdrObjectOwnership() )
489
    if ( pShape && pShape->HasSdrObjectOwnership() )
490
	{
490
        // only the shape is allowed to delete me, and will reset the ownership before doing so
491
        // only the shape is allowed to delete me, and will reset the ownership before doing so
492
493
        // Reset the object's pointer to the containing object list
494
        // because the later will be destroyed soon.
495
        pObject->SetObjList(NULL);
491
        return;
496
        return;
497
	}
492
498
493
    delete pObject;
499
    delete pObject;
494
}
500
}

Return to issue 113608