Proper syntax for freeing an allocated array in silly c++ :)
authorTon Roosendaal <ton@blender.org>
Wed, 1 Mar 2006 21:18:31 +0000 (21:18 +0000)
committerTon Roosendaal <ton@blender.org>
Wed, 1 Mar 2006 21:18:31 +0000 (21:18 +0000)
source/blender/imbuf/intern/openexr/openexr_api.cpp

index cb9bdd28019ede8e5cb108a7fec0f4c5cfab0121..6252caa2918c6e20d55e8d63bae629b34031d325 100644 (file)
@@ -249,7 +249,7 @@ static short imb_save_openexr_half(struct ImBuf *ibuf, char *name, int flags)
                file->setFrameBuffer (frameBuffer);                               
                file->writePixels (height);                                       
                delete file;
-               delete pixels;
+               delete [] pixels;
        }
        catch (const std::exception &exc)
        {