cogl-auto-texture: Avoid a double-free crash
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 11 Oct 2018 06:49:22 +0000 (08:49 +0200)
committerMarco Trevisan (Treviño) <marco@ubuntu.com>
Thu, 24 Jan 2019 18:00:14 +0000 (18:00 +0000)
commita8d75a67fd6f7f9f1ebdccc374951d4b4346970b
treee385bfe6e7d5246cbb874e15995f3fd0f8e93851
parent19555e5091c269932f8471b8d51f8ecb2f23d804
cogl-auto-texture: Avoid a double-free crash

If texture allocation fails (e.g. on an old GPU with size limit 2048)
then `cogl_texture_new_with_size` was trying to use the same CoglError
twice. The second time was after it had already been freed.

Bug reported and fix provided by Gert van de Kraats.

Origin: https://gitlab.gnome.org/GNOME/mutter/commit/d21478b0f
Bug-Ubuntu: https://launchpad.net/bugs/1790525
Applied-upstream: 3.30.3

Gbp-Pq: Name cogl-auto-texture-Avoid-a-double-free-crash.patch
cogl/cogl/deprecated/cogl-auto-texture.c