diff --git a/clutter/cogl/common/cogl-handle.h b/clutter/cogl/common/cogl-handle.h index 55e8ecd26..242b187f5 100644 --- a/clutter/cogl/common/cogl-handle.h +++ b/clutter/cogl/common/cogl-handle.h @@ -125,6 +125,9 @@ typedef struct _CoglHandleObject { \ CoglHandleObject *obj = (CoglHandleObject *)handle; \ \ + if (handle == COGL_INVALID_HANDLE) \ + return FALSE; \ + \ return (obj->klass->type == \ _cogl_##type_name##_get_type ()); \ } \