GNOME Bugzilla – Bug 747295
shared memory leak when creating/destroying widgets
Last modified: 2015-11-24 19:55:46 UTC
Created attachment 300879 [details] test program Hello I' using gtk+-3.14.11 with wayland-1.6 (tried 1.6.1), builded with yocto 1.7. With the attached programm when I'm destroying the window the memory is not released. Only shared memory grows up, on the program and "weston", after some run the programm is killed. test is compiled with : "gcc `pkg-config --cflags gtk+-3.0` -o example-1 example-1.c `pkg-config --libs gtk+-3.0`" thanks for any answer Aurèle
Created attachment 316197 [details] [review] wayland: Plug surface leak Other backends take care of the cairo surface destruction in GdkWindow::destroy. We must do the same here, or the cairo_surface and its corresponding wl_buffer are left dangling.
Review of attachment 316197 [details] [review]: ::: gdk/wayland/gdkdisplay-wayland.c @@ +1031,3 @@ + g_print ("EHMMMM...\n"); + just remove these leftovers. ::: gdk/wayland/gdkwindow-wayland.c @@ +1774,3 @@ + cairo_surface_destroy (impl->cairo_surface); + impl->cairo_surface = NULL; + } nice catch
Just noticed that I accidentally pushed the untouched patch :(... fixing up immediately. Attachment 316197 [details] pushed as d62febc - wayland: Plug surface leak