glimagesink: If creating a context or upload failed, destroy it
authorSebastian Dröge <sebastian@centricular.com>
Wed, 23 Apr 2014 08:00:48 +0000 (10:00 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 23 Apr 2014 08:00:48 +0000 (10:00 +0200)
commit38ebfb2da874fa601c22cbc83a1cffc357f45276
treed53cdfc4f0de9290b09cb2bbdef5bb505384639b
parent516597d5fab85bbd8033082ce54c10984dfd327d
glimagesink: If creating a context or upload failed, destroy it

Fixes deadlocks in error cases when later code assumes the broken
context is actually usable.

https://bugzilla.gnome.org/show_bug.cgi?id=728761
ext/gl/gstglimagesink.c