I once noticed a memory leak in KDE when setting the background to a (very many image) slideshow instead of a single image. That was probably sometime around 2015.
Normally it's a bit tricky to calculate memory blame between X11, the WM, and the shell, since often their allocations are actually on behalf of an application, and killing the application will reclaim it.
Normally it's a bit tricky to calculate memory blame between X11, the WM, and the shell, since often their allocations are actually on behalf of an application, and killing the application will reclaim it.