Skip to content

Commit b90ed36

Browse files
committed
test_ogr_geos.cpp: fix invalid use of GEOS API
1 parent ee82df2 commit b90ed36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autotest/cpp/test_ogr_geos.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ TEST_F(test_ogr_geos, exportToGEOS)
6565

6666
GEOSContextHandle_t ctxt = OGRGeometry::createGEOSContext();
6767
GEOSGeom geosGeom = geom.exportToGEOS(ctxt);
68-
OGRGeometry::freeGEOSContext(ctxt);
6968
ASSERT_TRUE(nullptr != geosGeom);
7069

7170
GEOSGeom_destroy_r(ctxt, geosGeom);
71+
OGRGeometry::freeGEOSContext(ctxt);
7272
#endif
7373
}
7474

0 commit comments

Comments
 (0)