OSDN Git Service

glx: plug a leak
authorKristof Ralovich <kristof.ralovich@gmail.com>
Tue, 30 Jun 2009 14:31:18 +0000 (08:31 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Jun 2009 14:43:22 +0000 (08:43 -0600)
Swrast was missing a free for the culmination of driConcatConfigs.

Use free(), not _mesa_free() since we shouldn't be calling any Mesa
functions from the GLX code.  driConcatConfigs() should probably use
regular malloc/free to be consistant but the Mesa functions just wrap
the libc functions anyway.

src/glx/x11/drisw_glx.c

index b843ce4..1c229dd 100644 (file)
@@ -401,6 +401,8 @@ driCreateScreen(__GLXscreenConfigs * psc, int screen,
    psc->configs = driConvertConfigs(psc->core, psc->configs, driver_configs);
    psc->visuals = driConvertConfigs(psc->core, psc->visuals, driver_configs);
 
+   free(driver_configs);
+
    psp->destroyScreen = driDestroyScreen;
    psp->createContext = driCreateContext;
    psp->createDrawable = driCreateDrawable;