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
parent 6ea753b056
commit 5c86a728d4

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