From bd1e3e7642e23a863728157e3d8226d24f9906d8 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 25 Feb 2013 11:26:49 +0100 Subject: [PATCH] cogl-buffer: Stop warning spam running in sw rendering /etc/gdm/Xsession[731]: Aviso do gerenciador de janelas: Log level 8: g_error_free: assertion `error != NULL' failed https://bugzilla.gnome.org/show_bug.cgi?id=694657 Reviewed-by: Robert Bragg (cherry picked from commit 83dbf79986981fac9ec0f2575b7c7cb32f629f0f) --- cogl/cogl-buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogl/cogl-buffer.c b/cogl/cogl-buffer.c index 0600e01b9..48d0a7dcc 100644 --- a/cogl/cogl-buffer.c +++ b/cogl/cogl-buffer.c @@ -304,7 +304,8 @@ _cogl_buffer_map_range_for_fill_or_fallback (CoglBuffer *buffer, if (ret) return ret; - cogl_error_free (ignore_error); + if (ignore_error) + cogl_error_free (ignore_error); /* If the map fails then we'll use a temporary buffer to fill the data and then upload it using cogl_buffer_set_data when