framebuffer-deprecated: Unref the correct buffer

Looks like a thinko introduced by commit
79719347c8 .

Found by a coverity scan.

https://bugzilla.gnome.org/show_bug.cgi?id=749111
This commit is contained in:
Rui Matos 2015-05-08 15:30:41 +02:00
parent c1d3811ba1
commit eb87ad165c

View File

@ -78,7 +78,7 @@ _cogl_free_framebuffer_stack (GSList *stack)
cogl_object_unref (entry->draw_buffer);
if (entry->read_buffer)
cogl_object_unref (entry->draw_buffer);
cogl_object_unref (entry->read_buffer);
g_slice_free (CoglFramebufferStackEntry, entry);
}