[Liblas-commits] r1051 - trunk/apps

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Feb 19 14:08:50 EST 2009


Author: hobu
Date: Thu Feb 19 14:08:50 2009
New Revision: 1051
URL: http://liblas.org/changeset/1051

Log:
don't leak a LASColorH

Modified:
   trunk/apps/lascommon.c

Modified: trunk/apps/lascommon.c
==============================================================================
--- trunk/apps/lascommon.c	(original)
+++ trunk/apps/lascommon.c	Thu Feb 19 14:08:50 2009
@@ -152,9 +152,9 @@
         min_color = LASPoint_GetColor(summary->pmin);
         max_color = LASPoint_GetColor(summary->pmax);
         
-        red = MIN(LASColor_GetRed(LASPoint_GetColor(summary->pmin)), LASColor_GetRed(color));
-        green = MIN(LASColor_GetGreen(LASPoint_GetColor(summary->pmin)), LASColor_GetGreen(color));
-        blue = MIN(LASColor_GetBlue(LASPoint_GetColor(summary->pmin)), LASColor_GetBlue(color));
+        red = MIN(LASColor_GetRed(min_color), LASColor_GetRed(color));
+        green = MIN(LASColor_GetGreen(min_color), LASColor_GetGreen(color));
+        blue = MIN(LASColor_GetBlue(min_color), LASColor_GetBlue(color));
 
         LASColor_SetRed(min_color, red);
         LASColor_SetGreen(min_color, green);
@@ -163,9 +163,9 @@
         LASPoint_SetColor(summary->pmin, min_color);
         LASColor_Destroy(min_color);
 
-        red = MAX(LASColor_GetRed(LASPoint_GetColor(summary->pmax)), LASColor_GetRed(color));
-        green = MAX(LASColor_GetGreen(LASPoint_GetColor(summary->pmax)), LASColor_GetGreen(color));
-        blue = MAX(LASColor_GetBlue(LASPoint_GetColor(summary->pmax)), LASColor_GetBlue(color));
+        red = MAX(LASColor_GetRed(max_color), LASColor_GetRed(color));
+        green = MAX(LASColor_GetGreen(max_color), LASColor_GetGreen(color));
+        blue = MAX(LASColor_GetBlue(max_color), LASColor_GetBlue(color));
 
         LASColor_SetRed(max_color, red);
         LASColor_SetGreen(max_color, green);


More information about the Liblas-commits mailing list