diff --git a/hw/xwin/winmultiwindowwindow.c b/hw/xwin/winmultiwindowwindow.c index 4aca28930..24e226c51 100644 --- a/hw/xwin/winmultiwindowwindow.c +++ b/hw/xwin/winmultiwindowwindow.c @@ -1137,9 +1137,7 @@ winDestroyPixmapMultiwindow(PixmapPtr pPixmap) pPixmapPriv->pbmih = NULL; /* Free the pixmap memory */ - free(pPixmap); - pPixmap = NULL; - + FreePixmap(pPixmap); return TRUE; }