gldisplay: also free the GWeakRef when removing dead contexts
authorMatthew Waters <matthew@centricular.com>
Thu, 22 Sep 2016 08:19:36 +0000 (18:19 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:22 +0000 (19:32 +0000)
commit7cbac97b947707837f935044f0f774a2414ff53a
tree077b8a8121889aa53d374f13ef874bcad0dc30e9
parentcb0f02c78abd6d528ec9377db8b716122580fca3
gldisplay: also free the GWeakRef when removing dead contexts

Otherwise we leak GWeakRef's.

Found with make -C tests/check libs/gstglcontext.valgrind
gst-libs/gst/gl/gstgldisplay.c