diff options
Diffstat (limited to 'xserver/randr/randr.c')
-rw-r--r-- | xserver/randr/randr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xserver/randr/randr.c b/xserver/randr/randr.c index 6e3f14b4e..ad1dda227 100644 --- a/xserver/randr/randr.c +++ b/xserver/randr/randr.c @@ -98,6 +98,8 @@ RRCloseScreen(ScreenPtr pScreen) if (pScrPriv->provider) RRProviderDestroy(pScrPriv->provider); + RRMonitorClose(pScreen); + free(pScrPriv->crtcs); free(pScrPriv->outputs); free(pScrPriv); @@ -333,6 +335,8 @@ RRScreenInit(ScreenPtr pScreen) pScrPriv->numCrtcs = 0; pScrPriv->crtcs = NULL; + RRMonitorInit(pScreen); + RRNScreens += 1; /* keep count of screens that implement randr */ return TRUE; } |