CID#705646 leak on error path

Change-Id: I3b701f47bbd4141127e209673a4ce9335d68ca2a
This commit is contained in:
Caolán McNamara 2013-10-03 12:20:04 +01:00
parent 20a48f8a68
commit a29062a478

View file

@ -231,11 +231,10 @@ void SaneDlg::InitFields()
} }
maReslBox.InsertValue( (long)pDouble[1] ); maReslBox.InsertValue( (long)pDouble[1] );
} }
if( pDouble )
delete [] pDouble;
} }
else else
maReslBox.Enable( sal_False ); maReslBox.Enable( sal_False );
delete [] pDouble;
} }
} }
else else