mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
xvimagesink: fix leak when images are freed after the X context
I'm not 100% sure this is valid on any other X server than mine, but since the XFree call does not take the context as a parameter, it seems pretty certain it's the right thing to do, but I'll put this caveat here in case someone checks in the future.
This commit is contained in:
parent
70c6c2ae0c
commit
a8a3e3f7d5
1 changed files with 2 additions and 0 deletions
|
@ -244,6 +244,8 @@ gst_xvimage_buffer_destroy (GstXvImageBuffer * xvimage)
|
|||
shmdt (xvimage->SHMInfo.shmaddr);
|
||||
}
|
||||
#endif
|
||||
if (xvimage->xvimage)
|
||||
XFree (xvimage->xvimage);
|
||||
goto beach;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue