Here's a patch to fix the biggest of the leaks. I notice however that upstream is working on additional fixes. But those fixes are very new and experimental. What I am providing here is the more significant and mature of the leak fixes currently being proposed.
** Patch added: "gjs_1.52.1-1ubuntu1.debdiff" https://bugs.launchpad.net/ubuntu/+source/gjs/+bug/1672297/+attachment/5117659/+files/gjs_1.52.1-1ubuntu1.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1672297 Title: gnome-shell uses lots of memory, and grows over time To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell/+bug/1672297/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs