diff options
author | tpaviot <tpaviot@gmail.com> | 2012-01-12 21:46:54 +0100 |
---|---|---|
committer | tpaviot <tpaviot@gmail.com> | 2012-01-15 15:27:17 +0100 |
commit | 770532776a841313f10b28e70b7ccedc639cd0c5 (patch) | |
tree | 62d19d197eb5532bbba760a92878834015143413 | |
parent | a2996bc0f06225fb990b784b95685c1cd75cdca9 (diff) | |
download | oce-770532776a841313f10b28e70b7ccedc639cd0c5.tar.gz oce-770532776a841313f10b28e70b7ccedc639cd0c5.zip |
[cppcheck-error-fix][memory-leak]
[OpenGl/OpenGl_filters.cxx:351]: (error) Memory leak: ptr
-rw-r--r-- | src/OpenGl/OpenGl_filters.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/OpenGl/OpenGl_filters.cxx b/src/OpenGl/OpenGl_filters.cxx index 06f0966a..15561110 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) ); |