[SCM] OCE packaging branch, upstream, updated. OCE-0.6.0-230-g17bea23

tpaviot tpaviot at gmail.com
Fri Feb 24 18:50:35 UTC 2012


The following commit has been merged in the upstream branch:
commit 5a891df507e87ee7d4af48c12cbd738f8880c4f9
Author: tpaviot <tpaviot at gmail.com>
Date:   Thu Jan 12 21:57:55 2012 +0100

    [cppcheck-error-fix][mismatch-allocation-deallocation]
    
    [OpenGl/OpenGl_triedron.cxx:608]: (error) Mismatching allocation and deallocation: isPlaneActive
    [OpenGl/OpenGl_triedron.cxx:1116]: (error) Mismatching allocation and deallocation: isPlaneActive

diff --git a/src/OpenGl/OpenGl_triedron.cxx b/src/OpenGl/OpenGl_triedron.cxx
index 657eed1..3b03570 100644
--- a/src/OpenGl/OpenGl_triedron.cxx
+++ b/src/OpenGl/OpenGl_triedron.cxx
@@ -605,7 +605,7 @@ TStatus call_triedron_redraw (
       glEnable(GL_CLIP_PLANE0 + ii);
     }
   } 
-  free(isPlaneActive);
+  delete [] isPlaneActive;
 
 #endif
 
@@ -1108,7 +1108,7 @@ TStatus call_zbuffer_triedron_redraw (
       glEnable(GL_CLIP_PLANE0 + i);
     }
   }
-  free(isPlaneActive);
+  delete [] isPlaneActive;
 #endif
 
   if (!isWithinView) { /* restore matrix */

-- 
OCE packaging



More information about the debian-science-commits mailing list