r600g: fix htile buffer leak
authorMarek Olšák <maraeo@gmail.com>
Thu, 31 Jan 2013 14:29:16 +0000 (15:29 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 31 Jan 2013 14:35:18 +0000 (15:35 +0100)
NOTE: This is a candidate for the 9.1 branch.

src/gallium/drivers/r600/r600_texture.c

index 1d04cc06014a1dced9c0f3a1d90a731dc110bb73..85fc887971dd48e186143043fe3f7747fec0631c 100644 (file)
@@ -270,6 +270,7 @@ static void r600_texture_destroy(struct pipe_screen *screen,
        if (rtex->flushed_depth_texture)
                pipe_resource_reference((struct pipe_resource **)&rtex->flushed_depth_texture, NULL);
 
+        pipe_resource_reference((struct pipe_resource**)&rtex->htile, NULL);
        pb_reference(&resource->buf, NULL);
        FREE(rtex);
 }