In GTK 4.16.1 on Windows, memory leaks occur with every widget redraw (GtkDrawingArea with simple shapes). My application, which refreshes at 60Hz, sees its memory usage climb to 2GB after just 30 seconds. However, with GTK 4.14.5, there are no memory leaks.
Note: It happens only when using GtkDrawingArea. There are no leaks when rendering with GtkGLArea.
Interestingly, the size of the leak per draw is, depending on the widget size, in megabytes. So, it is really significant. It looks like someone forgot to delete the back buffers, or they’re being created every time. It should be simple to fix, I guess.