[gnome-builder] gstyle: fix wrong destroy function



commit bf68006d31792052601d578cf17e7a8c45179534
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Wed Jun 13 19:35:12 2018 +0200

    gstyle: fix wrong destroy function

 src/gstyle/gstyle-color-scale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gstyle/gstyle-color-scale.c b/src/gstyle/gstyle-color-scale.c
index 6ee637466..d42501bda 100644
--- a/src/gstyle/gstyle-color-scale.c
+++ b/src/gstyle/gstyle-color-scale.c
@@ -601,7 +601,7 @@ gstyle_color_scale_finalize (GObject *object)
   g_clear_pointer (&self->custom_color_stops, g_sequence_free);
   g_clear_pointer (&self->checkered_pattern, cairo_pattern_destroy);
   g_clear_pointer (&self->pattern, cairo_pattern_destroy);
-  g_clear_pointer (&self->data_surface, cairo_pattern_destroy);
+  g_clear_pointer (&self->data_surface, cairo_surface_destroy);
 
   g_clear_pointer (&self->data_raw, g_free);
   g_clear_pointer (&self->data_raw_filtered, g_free);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]