dix: dixFreeScreen call hookPostCreateResources too

Call DeleteCallbackList(&pScreen->hookPostCreateResources) during
dixFreeScreen, because otherwise it will be heap-use-after-free during
DeleteCallbackManager call.

Signed-off-by: Tautvis <gtautvis@gmail.com>
This commit is contained in:
Tautvis
2025-10-29 01:27:55 +02:00
committed by Enrico Weigelt
parent e422cfc73c
commit c329f4e91c

View File

@@ -25,5 +25,6 @@ void dixFreeScreen(ScreenPtr pScreen)
DeleteCallbackList(&pScreen->hookClose);
DeleteCallbackList(&pScreen->hookPostClose);
DeleteCallbackList(&pScreen->hookPixmapDestroy);
DeleteCallbackList(&pScreen->hookPostCreateResources);
free(pScreen);
}