diff options
author | Hong Liu <hong.liu@intel.com> | 2008-04-17 10:57:34 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-04-17 10:57:34 +0800 |
commit | 0ae283582d21776d3317d5fc1c25751d50d562c7 (patch) | |
tree | 2e19fd2c965bd6a9454f76b8bd39c29f7f08a20d /src/i830_driver.c | |
parent | 7008eac855302fd467e001495483c2dccfddf68f (diff) |
fix possible segfault in I830FreeScreen
pI830 may point to NULL if I830PreInit fails
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index ea37e6d6..dd3e2356 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -3112,7 +3112,7 @@ I830FreeScreen(int scrnIndex, int flags) #ifdef INTEL_XVMC ScrnInfoPtr pScrn = xf86Screens[scrnIndex]; I830Ptr pI830 = I830PTR(pScrn); - if (pI830->XvMCEnabled) + if (pI830 && pI830->XvMCEnabled) intel_xvmc_finish(xf86Screens[scrnIndex]); #endif I830FreeRec(xf86Screens[scrnIndex]); |