diff --git a/cogl-1.22.8/cogl/cogl-context.c b/cogl-1.22.8-fixed/cogl/cogl-context.c index a7eed29..2280942 100644 --- a/cogl/cogl-context.c +++ b/cogl/cogl-context.c @@ -219,6 +219,7 @@ cogl_context_new (CoglDisplay *display, } context->display = display; + cogl_object_ref (display); /* This is duplicated data, but it's much more convenient to have the driver attached to the context and the value is accessed a