summaryrefslogtreecommitdiff
path: root/gsk
diff options
context:
space:
mode:
Diffstat (limited to 'gsk')
-rw-r--r--gsk/gsktransform.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gsk/gsktransform.c b/gsk/gsktransform.c
index 002a52a89b..aed9eae994 100644
--- a/gsk/gsktransform.c
+++ b/gsk/gsktransform.c
@@ -123,7 +123,8 @@ gsk_transform_alloc (const GskTransformClass *transform_class,
self->transform_class = transform_class;
self->category = next ? MIN (category, next->category) : category;
- self->next = gsk_transform_is_identity (next) ? NULL : next;
+ self->next = gsk_transform_is_identity (next) ? NULL : gsk_transform_ref (next);
+ g_clear_pointer (&next, gsk_transform_unref);
return self;
}