glx/drisw: fix memory leak when destroying screen.
authorRoland Scheidegger <sroland@vmware.com>
Wed, 30 Apr 2014 23:04:31 +0000 (01:04 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 1 May 2014 14:13:38 +0000 (16:13 +0200)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/glx/drisw_glx.c

index 751626bf3bb0a0f0a32fe1e4ee7bbc87f3f8d255..5885b6635c48184199363796c10e503857acce59 100644 (file)
@@ -619,6 +619,7 @@ driswDestroyScreen(struct glx_screen *base)
    psc->driScreen = NULL;
    if (psc->driver)
       dlclose(psc->driver);
+   free(psc);
 }
 
 #define SWRAST_DRIVER_NAME "swrast"