diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-06-08 20:27:31 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-08 22:52:29 +0200 |
commit | 9dbe6f6d0f1b4a140f1bbc67c0ec23532f327d86 (patch) | |
tree | 0fd70fc678305b84db22843b1914c23aa6bc4dbd | |
parent | ef9ffcca3b6a959b6dfb3ac129fc8a98c0ae5569 (diff) |
fix DeleteAndDestroy in previous commit
Not deleteing seems to crash in ScRefreshTimer::Timeout in sc_unoapi.
Change-Id: I765ab89f0b8b200aeccde9d46293e8f0e3f706d4
-rw-r--r-- | sfx2/source/appl/linksrc.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/appl/linksrc.cxx b/sfx2/source/appl/linksrc.cxx index 6957c6c21bcf..64730e89297a 100644 --- a/sfx2/source/appl/linksrc.cxx +++ b/sfx2/source/appl/linksrc.cxx @@ -107,8 +107,11 @@ public: void DeleteAndDestroy(SvLinkSource_Entry_Impl* p) { iterator it = std::find(begin(), end(), p); - if( it != end() ) + if (it != end()) + { erase(it); + delete p; + } } ~SvLinkSource_Array_Impl() |