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

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


The following commit has been merged in the upstream branch:
commit 770532776a841313f10b28e70b7ccedc639cd0c5
Author: tpaviot <tpaviot at gmail.com>
Date:   Thu Jan 12 21:46:54 2012 +0100

    [cppcheck-error-fix][memory-leak]
    
    [OpenGl/OpenGl_filters.cxx:351]: (error) Memory leak: ptr

diff --git a/src/OpenGl/OpenGl_filters.cxx b/src/OpenGl/OpenGl_filters.cxx
index 06f0966..1556111 100644
--- a/src/OpenGl/OpenGl_filters.cxx
+++ b/src/OpenGl/OpenGl_filters.cxx
@@ -348,6 +348,7 @@ TglNamesetRemove( Tint num, Tint *set )
   size = num, size %= LIST_GROW_SIZE, size++, size *= LIST_GROW_SIZE;
   temp = new Tint[size];
   if( !temp )
+    delete [] ptr;
     return TFailure;
   memcpy( temp, set, num*sizeof(Tint) );
 

-- 
OCE packaging



More information about the debian-science-commits mailing list