X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbctexture.C;h=e3eda5fa407fe4de9e5d8c2d26742fad9cb95872;hb=a6b1f3c0c5c17c3a26758abc46bcb46100308c66;hp=52787e1a527fb45e546c1b98213fac8a149d47ce;hpb=3305343c3d9bfb889f6892e7821cc0e2d68669de;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/bctexture.C b/cinelerra-5.1/guicast/bctexture.C index 52787e1a..e3eda5fa 100644 --- a/cinelerra-5.1/guicast/bctexture.C +++ b/cinelerra-5.1/guicast/bctexture.C @@ -249,7 +249,7 @@ void BC_Texture::write_tex(const char *fn, int id) uint8_t *img = new uint8_t[w*h*3]; glGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_UNSIGNED_BYTE, img); write_ppm(img, w, h, "%s", fn); - delete img; + delete [] img; glActiveTexture(prev_id); #endif }