From time to time, when the image_pool list has more then 1 element and I suppose at start, all but 1 pooled ximage are leaked. This is due to broken algorithm in gst_ximagesink_src_ximage_get(). There was also a risk of use after free for the case where the ximage size has changed. https://bugzilla.gnome.org/show_bug.cgi?id=728502