From cd1f63c76463bb5ba78f6c3bb13aa40a97f1e004 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 12 Sep 2012 21:04:59 +0300 Subject: [PATCH] Plug a memory leak --- source/uniform.h | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.43.0