Changeset 11392

Show
Ignore:
Timestamp:
05/01/07 23:38:14 (2 years ago)
Author:
warmerdam
Message:

Moved SWclose() outside if statement so the swath is closed even if
the inquiry showed there were no swaths. Fixed handle leak that is
likely responsible for bug #1485.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.4/gdal/frmts/hdf4/hdf4dataset.cpp

    r10646 r11392  
    864864 
    865865            CSLDestroy( papszSwaths ); 
    866             SWclose( hHDF4 ); 
    867866        } 
     867        SWclose( hHDF4 ); 
    868868 
    869869/* -------------------------------------------------------------------- */