From c70fc41d6b7eb6f56c70b8e85469c5db66837a42 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Tue, 9 Apr 2013 07:21:20 +0900 Subject: deleting NULL is safe Change-Id: Ief65149bc88ac4ce8badc7dbce818fca0cdcb201 --- svx/source/svdraw/svdoole2.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'svx/source/svdraw/svdoole2.cxx') diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx index 3029917c93ba..e3656a4ffa84 100644 --- a/svx/source/svdraw/svdoole2.cxx +++ b/svx/source/svdraw/svdoole2.cxx @@ -795,11 +795,9 @@ SdrOle2Obj::~SdrOle2Obj() if ( mpImpl->mbConnected ) Disconnect(); - if( pGraphic!=NULL ) - delete pGraphic; + delete pGraphic; - if(mpImpl->pGraphicObject!=NULL) - delete mpImpl->pGraphicObject; + delete mpImpl->pGraphicObject; if(pModifyListener) { -- cgit