Fix small memory leak in cycles tile render, a few bytes for each tile.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 6 Feb 2013 21:32:34 +0000 (21:32 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 6 Feb 2013 21:32:34 +0000 (21:32 +0000)
Reported by "aquo" on IRC.

intern/cycles/render/session.cpp

index d87f845..94cb691 100644 (file)
@@ -381,7 +381,7 @@ bool Session::acquire_tile(Device *tile_device, RenderTile& rtile)
 
        buffer_params.get_offset_stride(rtile.offset, rtile.stride);
 
-       RenderBuffers *tilebuffers = new RenderBuffers(tile_device);
+       RenderBuffers *tilebuffers;
 
        /* allocate buffers */
        if(params.progressive_refine) {