diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c index 822cdfd8b..525f76835 100644 --- a/hw/xfree86/common/xf86Helper.c +++ b/hw/xfree86/common/xf86Helper.c @@ -254,7 +254,7 @@ xf86DeleteScreen(int scrnIndex, int flags) if (pScrn->drv) pScrn->drv->refCount--; - if (pScrn->privates); + if (pScrn->privates) xfree(pScrn->privates); xf86ClearEntityListForScreen(scrnIndex); @@ -346,7 +346,7 @@ xf86DeleteInput(InputInfoPtr pInp, int flags) if (pInp->drv) pInp->drv->refCount--; - if (pInp->private); + if (pInp->private) xfree(pInp->private); /* Remove the entry from the list. */