offscreen: Plug a leak in an error path
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 4 Apr 2011 13:42:36 +0000 (14:42 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 4 Apr 2011 13:42:36 +0000 (14:42 +0100)
commit02d14ec15cf5a41aca3208e8d5bce7dab8dd1fe4
tree742f0b45bf0aeb405ecd405900766985b0f2f25e
parent28c0a4d6be52519a67b268c3e1de5f1aaca0f2e4
offscreen: Plug a leak in an error path

When creating a CoglOffscreen we take a reference on the texture handle,
but in case of error we never release it.

We should take that reference only on success.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2620
clutter/cogl/cogl/cogl-framebuffer.c