diff options
-rw-r--r-- | src/r128_driver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/r128_driver.c b/src/r128_driver.c index e3d7bb3..f42acb6 100644 --- a/src/r128_driver.c +++ b/src/r128_driver.c @@ -4337,6 +4337,8 @@ void R128FreeScreen(int scrnIndex, int flags) R128InfoPtr info = R128PTR(pScrn); R128TRACE(("R128FreeScreen\n")); + if (info == NULL) + return; #ifdef WITH_VGAHW if (info->VGAAccess && xf86LoaderCheckSymbol("vgaHWFreeHWRec")) vgaHWFreeHWRec(pScrn); |