summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render/filter.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/render/filter.c b/render/filter.c
index 8c401ee5d..019ea7f94 100644
--- a/render/filter.c
+++ b/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