diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-11-22 10:00:45 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-11-22 10:01:11 +0100 |
commit | b388be4ec8a23337af5569ded370773a7b93fa55 (patch) | |
tree | 2413c5887e647460344b0b96a089120374aba2bc | |
parent | 966c1e94e8e2669bd623999661b95cdfefa8c6b7 (diff) |
cppcheck: fix 1 memleak
Change-Id: Ic738033bc9a10df4ddc26c4538a6969d389dc631
-rw-r--r-- | sd/source/ui/dlg/sdtreelb.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index e10f241f69bf..4fd673a35d28 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -1207,11 +1207,6 @@ void SdPageObjsTLB::DoDrag() bIsInDrag = true; - // object is destroyed by internal reference mechanism - SdTransferable* pTransferable = - new SdPageObjsTLB::SdPageObjsTransferable( - *this, aBookmark, *pDocShell, eDragType); - // Get the view. ::sd::ViewShell* pViewShell = GetViewShellForDocShell(*pDocShell); if (pViewShell == nullptr) @@ -1226,6 +1221,11 @@ void SdPageObjsTLB::DoDrag() return; } + // object is destroyed by internal reference mechanism + SdTransferable* pTransferable = + new SdPageObjsTLB::SdPageObjsTransferable( + *this, aBookmark, *pDocShell, eDragType); + SdrObject* pObject = nullptr; void* pUserData = GetCurEntry()->GetUserData(); if (pUserData != nullptr && pUserData != reinterpret_cast<void*>(1)) |