summaryrefslogtreecommitdiff
path: root/svx/source/gallery2/galmisc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/gallery2/galmisc.cxx')
-rw-r--r--svx/source/gallery2/galmisc.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx
index 29258839a2dd..025b1019f5c5 100644
--- a/svx/source/gallery2/galmisc.cxx
+++ b/svx/source/gallery2/galmisc.cxx
@@ -454,7 +454,10 @@ void GalleryTransferable::InitData( bool bLazy )
mpURL = new INetURLObject;
if( !mpTheme->GetURL( mnObjectPos, *mpURL ) )
- delete mpURL, mpURL = nullptr;
+ {
+ delete mpURL;
+ mpURL = nullptr;
+ }
}
if( ( SGA_OBJ_SOUND != meObjectKind ) && !mpGraphicObject )
@@ -570,9 +573,12 @@ void GalleryTransferable::DragFinished( sal_Int8 nDropAction )
void GalleryTransferable::ObjectReleased()
{
mxModelStream.Clear();
- delete mpGraphicObject, mpGraphicObject = nullptr;
- delete mpImageMap, mpImageMap = nullptr;
- delete mpURL, mpURL = nullptr;
+ delete mpGraphicObject;
+ mpGraphicObject = nullptr;
+ delete mpImageMap;
+ mpImageMap = nullptr;
+ delete mpURL;
+ mpURL = nullptr;
}
void GalleryTransferable::CopyToClipboard( vcl::Window* pWindow )