[cogl/cogl-1.20] framebuffer-deprecated: Unref the correct buffer
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/cogl-1.20] framebuffer-deprecated: Unref the correct buffer
- Date: Fri, 8 May 2015 14:36:14 +0000 (UTC)
commit eb87ad165cefe0815fe22217d0f2c31a251c8bb4
Author: Rui Matos <tiagomatos gmail com>
Date: Fri May 8 15:30:41 2015 +0200
framebuffer-deprecated: Unref the correct buffer
Looks like a thinko introduced by commit
79719347c879f675de92f1fe097de1c4b5f71116 .
Found by a coverity scan.
https://bugzilla.gnome.org/show_bug.cgi?id=749111
cogl/deprecated/cogl-framebuffer-deprecated.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/deprecated/cogl-framebuffer-deprecated.c b/cogl/deprecated/cogl-framebuffer-deprecated.c
index 19f3ee4..97a2a0a 100644
--- a/cogl/deprecated/cogl-framebuffer-deprecated.c
+++ b/cogl/deprecated/cogl-framebuffer-deprecated.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]