diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-11 15:35:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-11 22:09:00 +0200 |
commit | 1a3deaa7f7ff1d7e6ab5f5d551bcbc8c00d84052 (patch) | |
tree | 39eff448f9e2f288f8a6e9d42c980091570df50a /extensions | |
parent | 850995b2c22db7c3ddbcc8ebfad5bcbc0b01f029 (diff) |
coverity#705646 Resource leak
Change-Id: I709b16f720cf97c05207cfb22d0c0ea15622367a
Reviewed-on: https://gerrit.libreoffice.org/54139
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/scanner/sanedlg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx index f0ea18fa3bdc..f7062a13f283 100644 --- a/extensions/source/scanner/sanedlg.cxx +++ b/extensions/source/scanner/sanedlg.cxx @@ -496,7 +496,6 @@ void SaneDlg::InitFields() pField->SetMax( static_cast<long>(pDouble[ nValue-1 ]) ); else pField->SetMax( static_cast<long>(pDouble[ 1 ]) ); - delete [] pDouble; } switch( i ) { case 0: aMinTopLeft.setX( pField->GetMin() );break; @@ -514,6 +513,7 @@ void SaneDlg::InitFields() case 3: aMaxBottomRight.setY( static_cast<int>(fValue) );break; } } + delete [] pDouble; pField->Enable(); } else |