Memory leak in GstEGLImage
GstEGLImage is created in gst_egl_image_new_wrapped that uses g_new0 to allocate memory for the struct.
gst_mini_object_init is called with GstMiniObjectFreeFunction _gst_egl_image_free.
_gst_egl_image_free frees the wrapped EGLImageKHR but fails to free the memory allocated for GstEGLImage. This can be fixed by adding a call to g_free in _gst_egl_image_free.
My GstEGLImages are created in the dmabuf glupload path. This leak is more pronounced when disabling caching of GstEGLImage in said path. This caching is fundamentally broken so it's disabled locally: #375 #659
When caching is disabled new GstEGLImages are created each dmabuf upload in glupload, and memory leaks pretty quickly. Note that the leak exists in master as is as well but typically leaks more slowly.