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)
committerMatthew Waters <matthew@centricular.com>
Thu, 22 Sep 2016 08:25:37 +0000 (18:25 +1000)
commitbad58e2b13ab8ad524396472586457950791f2d3
treef04377bf670b22301432d3a22feb9172ce14196d
parentc40845731ab49c3e2aa304828007251031543bea
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