Saving OpenEXR half didn't free allocated half buffer... silly c++ memory
authorTon Roosendaal <ton@blender.org>
Tue, 28 Feb 2006 16:45:52 +0000 (16:45 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 28 Feb 2006 16:45:52 +0000 (16:45 +0000)
management!

source/blender/imbuf/intern/openexr/openexr_api.cpp

index 8c0bbb66911822258a1393e7db635d0f144757fa..cb9bdd28019ede8e5cb108a7fec0f4c5cfab0121 100644 (file)
@@ -249,6 +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;
        }
        catch (const std::exception &exc)
        {