From: Mikko Rasa Date: Wed, 12 Sep 2012 18:04:59 +0000 (+0300) Subject: Plug a memory leak X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;ds=inline;h=cd1f63c76463bb5ba78f6c3bb13aa40a97f1e004;p=libs%2Fgl.git Plug a memory leak --- diff --git a/source/uniform.h b/source/uniform.h index 156fe676..780bfe74 100644 --- a/source/uniform.h +++ b/source/uniform.h @@ -144,6 +144,11 @@ public: std::copy(vp, vp+elemsize*size, values); } + ~UniformArray() + { + delete[] values; + } + virtual void apply(int index) const { T::apply(index, size, values); }