diff options
-rw-r--r-- | sfx2/source/doc/objmisc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index a7fc00a38aa8..b3e00909e375 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -1284,14 +1284,14 @@ void AutoReloadTimer_Impl::Invoke() SfxStringItem(SID_REFERER, pObjSh->GetMedium()->GetName())); } SfxRequest aReq( SID_RELOAD, SfxCallMode::SLOT, aSet ); - pObjSh->Get_Impl()->pReloadTimer = nullptr; - delete this; + // this will delete this + pObjSh->Get_Impl()->pReloadTimer.reset(); pFrame->ExecReload_Impl( aReq ); return; } - pObjSh->Get_Impl()->pReloadTimer = nullptr; - delete this; + // this will delete this + pObjSh->Get_Impl()->pReloadTimer.reset(); } SfxModule* SfxObjectShell::GetModule() const |