fix another memleak
authorTilman Sauerbeck <tilman@freedesktop.org>
Wed, 12 Jul 2006 17:06:49 +0000 (17:06 +0000)
committerTilman Sauerbeck <tilman@freedesktop.org>
Wed, 12 Jul 2006 17:06:49 +0000 (17:06 +0000)
src/mesa/drivers/dri/common/dri_util.c

index d68837b545a2945f9642029f5f2fb42fbbfa5da1..b5c20a066a51fa212eac6e2aa002d9469024f2b7 100644 (file)
@@ -845,6 +845,10 @@ static void driDestroyScreen(__DRInativeDisplay *dpy, int scrn, void *screenPriv
        if ( psp->modes != NULL ) {
            (*dri_interface->destroyContextModes)( psp->modes );
        }
+
+       assert(psp->drawHash);
+       drmHashDestroy(psp->drawHash);
+
        _mesa_free(psp);
     }
 }