[Cogl] [PATCH] cogl-pango-fontmap: Use the right unref function for the renderer

Neil Roberts neil at linux.intel.com
Fri Jun 1 04:28:23 PDT 2012


The renderer was being unrefed with cogl_object_unref but it's
actually a GObject.
---
 cogl-pango/cogl-pango-fontmap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cogl-pango/cogl-pango-fontmap.c b/cogl-pango/cogl-pango-fontmap.c
index 4016811..e8df836 100644
--- a/cogl-pango/cogl-pango-fontmap.c
+++ b/cogl-pango/cogl-pango-fontmap.c
@@ -61,7 +61,7 @@ free_priv (gpointer data)
   CoglPangoFontMapPriv *priv = data;
 
   cogl_object_unref (priv->ctx);
-  cogl_object_unref (priv->renderer);
+  g_object_unref (priv->renderer);
 
   g_free (priv);
 }
-- 
1.7.3.16.g9464b



More information about the Cogl mailing list