Commit f4e299ca authored by Jasper St. Pierre's avatar Jasper St. Pierre

cursor: Split out code that frees the MetaCursorReference

parent f95f2b0c
......@@ -46,19 +46,23 @@ meta_cursor_reference_ref (MetaCursorReference *self)
return self;
}
static void
meta_cursor_reference_free (MetaCursorReference *self)
{
cogl_object_unref (self->texture);
if (self->bo)
gbm_bo_destroy (self->bo);
g_slice_free (MetaCursorReference, self);
}
void
meta_cursor_reference_unref (MetaCursorReference *self)
{
self->ref_count--;
if (self->ref_count == 0)
{
cogl_object_unref (self->texture);
if (self->bo)
gbm_bo_destroy (self->bo);
g_slice_free (MetaCursorReference, self);
}
meta_cursor_reference_free (self);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment