r600g: fix htile buffer leak

NOTE: This is a candidate for the 9.1 branch.
This commit is contained in:
Marek Olšák 2013-01-31 15:29:16 +01:00 committed by Jerome Glisse
parent ff515c4e7c
commit 3b8d4f941f

View 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);
}