From: Corbin Simpson Date: Tue, 20 Jan 2009 23:26:41 +0000 (-0800) Subject: r300: Fix missing free(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b9ecaa6dd7d4282f1f8796d151bdda0390ab51f;p=mesa.git r300: Fix missing free(). --- diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index 7bba567e83e..04b5a7772b5 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -135,7 +135,10 @@ static void r300_surface_unmap(struct pipe_screen* screen, } static void r300_destroy_screen(struct pipe_screen* pscreen) { - FREE(pscreen); + struct r300_screen* r300screen = r300_screen(pscreen); + + FREE(r300screen->caps); + FREE(r300screen); } struct pipe_screen* r300_create_screen(struct pipe_winsys* winsys, uint32_t pci_id)