From 9ef45919f0eb3bebeb6ee1ee6e1da2d859b43790 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 10 Sep 2013 13:40:26 +0100 Subject: fix audio loader on reinit graph --- rotord/src/cvimage.h | 1 + 1 file changed, 1 insertion(+) (limited to 'rotord/src/cvimage.h') diff --git a/rotord/src/cvimage.h b/rotord/src/cvimage.h index 0f0f931..2902295 100644 --- a/rotord/src/cvimage.h +++ b/rotord/src/cvimage.h @@ -102,6 +102,7 @@ namespace Rotor { }; bool setup(int _w,int _h){ //set up with internal data if ((w!=_w)|(h!=_h)){ + free(); rgb.create(_h,_w,CV_8UC3); RGBdata=rgb.data; //can move to use the bare pointer eventually ownsRGBdata=false; //will not be necessary -- cgit v1.2.3