]> git.tdb.fi Git - libs/gl.git/commitdiff
Plug a memory leak
authorMikko Rasa <tdb@tdb.fi>
Wed, 12 Sep 2012 18:04:59 +0000 (21:04 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 12 Sep 2012 18:04:59 +0000 (21:04 +0300)
source/uniform.h

index 156fe67623ec27bb4afd3334fac24dcc1bc77372..780bfe747ca3b2e6232a0791e11ca1b7e64762be 100644 (file)
@@ -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); }