diff --git a/cogl/cogl-bitmap.c b/cogl/cogl-bitmap.c index cc83dda72..88ad073b9 100644 --- a/cogl/cogl-bitmap.c +++ b/cogl/cogl-bitmap.c @@ -432,7 +432,10 @@ _cogl_bitmap_unmap (CoglBitmap *bitmap) { /* Divert to another bitmap if this data is shared */ if (bitmap->shared_bmp) - return _cogl_bitmap_unmap (bitmap->shared_bmp); + { + _cogl_bitmap_unmap (bitmap->shared_bmp); + return; + } g_assert (bitmap->mapped); bitmap->mapped = FALSE; @@ -484,7 +487,10 @@ _cogl_bitmap_unbind (CoglBitmap *bitmap) { /* Divert to another bitmap if this data is shared */ if (bitmap->shared_bmp) - return _cogl_bitmap_unbind (bitmap->shared_bmp); + { + _cogl_bitmap_unbind (bitmap->shared_bmp); + return; + } g_assert (bitmap->bound); bitmap->bound = FALSE; diff --git a/cogl/cogl-debug.h b/cogl/cogl-debug.h index 80607ce66..bf2d3190a 100644 --- a/cogl/cogl-debug.h +++ b/cogl/cogl-debug.h @@ -94,7 +94,7 @@ extern GHashTable *_cogl_debug_instances; #else #define COGL_NOTE(type,...) G_STMT_START { \ - if (G_UNLIKELY (COGL_DEBUG_ENABLED (COGL_DEBUG_##type)) { \ + if (G_UNLIKELY (COGL_DEBUG_ENABLED (COGL_DEBUG_##type))) { \ char *_fmt = g_strdup_printf (__VA_ARGS__); \ _cogl_profile_trace_message ("[" #type "] " G_STRLOC " & %s", _fmt);\ g_free (_fmt); \