Skip to content

Commit

Permalink
Make destructors virtual for classes with virtual methods in ogrsf_frmts
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/gdal/trunk@35117 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
schwehr committed Aug 15, 2016
1 parent 1a67f10 commit 84b5f38
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gdal/ogr/ogrsf_frmts/sde/ogr_sde.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class OGRSDEDataSource : public OGRDataSource
class OGRSDEDriver : public OGRSFDriver
{
public:
~OGRSDEDriver();
virtual ~OGRSDEDriver();

const char *GetName();
OGRDataSource *Open( const char *, int );
Expand Down
2 changes: 1 addition & 1 deletion gdal/ogr/ogrsf_frmts/segukooa/ogr_segukooa.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class OGRUKOOAP190Layer : public OGRSEGUKOOABaseLayer
public:
OGRUKOOAP190Layer(const char* pszFilename,
VSILFILE* fp);
~OGRUKOOAP190Layer();
virtual ~OGRUKOOAP190Layer();

virtual void ResetReading();
};
Expand Down
4 changes: 3 additions & 1 deletion gdal/ogr/ogrsf_frmts/selafin/ogrselafindatasource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ OGRSelafinDataSource::OGRSelafinDataSource() :
/************************************************************************/

OGRSelafinDataSource::~OGRSelafinDataSource() {
//CPLDebug("Selafin","~OGRSelafinDataSource(%s)",pszName);
#ifdef DEBUG_VERBOSE
CPLDebug("Selafin", "~OGRSelafinDataSource(%s)", pszName);
#endif
for( int i = 0; i < nLayers; i++ ) delete papoLayers[i];
CPLFree( papoLayers );
CPLFree( pszName );
Expand Down
2 changes: 1 addition & 1 deletion gdal/ogr/ogrsf_frmts/tiger/ogr_tiger.h
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ class OGRTigerDataSource : public OGRDataSource

public:
OGRTigerDataSource();
~OGRTigerDataSource();
virtual ~OGRTigerDataSource();

int GetWriteMode() { return bWriteMode; }

Expand Down

0 comments on commit 84b5f38

Please sign in to comment.