[GRASS-SVN] r71177 - grass-addons/grass7/imagery/i.superpixels.slic

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 12 08:52:43 PDT 2017


Author: mmetz
Date: 2017-06-12 08:52:43 -0700 (Mon, 12 Jun 2017)
New Revision: 71177

Modified:
   grass-addons/grass7/imagery/i.superpixels.slic/cache.c
Log:
i.superpixels.slic: fix cache_destroy()

Modified: grass-addons/grass7/imagery/i.superpixels.slic/cache.c
===================================================================
--- grass-addons/grass7/imagery/i.superpixels.slic/cache.c	2017-06-12 08:05:34 UTC (rev 71176)
+++ grass-addons/grass7/imagery/i.superpixels.slic/cache.c	2017-06-12 15:52:43 UTC (rev 71177)
@@ -76,12 +76,8 @@
 	Segment_close(&c->s);
     }
     else {
-	int row;
-
-	for (row = 0; row < c->rows; row++) {
-	    G_free(c->r[row][0]);
-	    G_free(c->r[row]);
-	}
+	G_free(c->r[0][0]);
+	G_free(c->r[0]);
 	G_free(c->r);
     }
 



More information about the grass-commit mailing list