aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/render
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/render')
-rw-r--r--xorg-server/render/filter.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xorg-server/render/filter.c b/xorg-server/render/filter.c
index 8c401ee5d..019ea7f94 100644
--- a/xorg-server/render/filter.c
+++ b/xorg-server/render/filter.c
@@ -273,7 +273,10 @@ PictureResetFilters(ScreenPtr pScreen)
free(ps->filters);
free(ps->filterAliases);
- PictureFreeFilterIds();
+
+ /* Free the filters when the last screen is closed */
+ if (pScreen->myNum == 0)
+ PictureFreeFilterIds();
}
int