diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 8a7913b6ac..0c386c161e 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -244,6 +244,8 @@ gst_xvimage_buffer_destroy (GstXvImageBuffer * xvimage) shmdt (xvimage->SHMInfo.shmaddr); } #endif + if (xvimage->xvimage) + XFree (xvimage->xvimage); goto beach; }