Kaydet (Commit) 20a48f8a authored tarafından Caolán McNamara's avatar Caolán McNamara

CID#705647 leak on error path

Change-Id: I6e52bfb34e7c4be0d17dfa7849d4a96248aa49b4
üst 8f5e4f2f
...@@ -1337,7 +1337,10 @@ sal_Bool SaneDlg::SetAdjustedNumericalValue( ...@@ -1337,7 +1337,10 @@ sal_Bool SaneDlg::SetAdjustedNumericalValue(
double* pValues = NULL; double* pValues = NULL;
int nValues; int nValues;
if( ( nValues = mrSane.GetRange( nOption, pValues ) ) < 0 ) if( ( nValues = mrSane.GetRange( nOption, pValues ) ) < 0 )
{
delete [] pValues;
return sal_False; return sal_False;
}
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "SaneDlg::SetAdjustedNumericalValue( \"%s\", %lg ) ", fprintf( stderr, "SaneDlg::SetAdjustedNumericalValue( \"%s\", %lg ) ",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment