[GRASS-SVN] r52276 - grass/branches/releasebranch_6_4/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 1 10:09:55 PDT 2012


Author: mmetz
Date: 2012-07-01 10:09:55 -0700 (Sun, 01 Jul 2012)
New Revision: 52276

Modified:
   grass/branches/releasebranch_6_4/vector/v.in.ogr/main.c
Log:
v.in.ogr: destroy OGRDataset

Modified: grass/branches/releasebranch_6_4/vector/v.in.ogr/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.in.ogr/main.c	2012-07-01 17:09:35 UTC (rev 52275)
+++ grass/branches/releasebranch_6_4/vector/v.in.ogr/main.c	2012-07-01 17:09:55 UTC (rev 52276)
@@ -318,6 +318,7 @@
     if (list_flag->answer) {
 	fprintf(stdout, "\n");
 	fflush(stdout);
+	OGR_DS_Destroy(Ogr_ds);
 	exit(EXIT_SUCCESS);
     }
 
@@ -1159,9 +1160,7 @@
 	G_message("%s", separator);
     }
 
-    /* needed?
-     * OGR_DS_Destroy( Ogr_ds );
-     */
+    OGR_DS_Destroy(Ogr_ds);
 
     /* Copy temporary vector to output vector */
     Vect_copy_map_lines(&Tmp, &Map);



More information about the grass-commit mailing list