diff --git a/gtk/gtktreelistrowsorter.c b/gtk/gtktreelistrowsorter.c index c4f63c1280..a35996e9ac 100644 --- a/gtk/gtktreelistrowsorter.c +++ b/gtk/gtktreelistrowsorter.c @@ -354,7 +354,7 @@ gtk_tree_list_row_sort_keys_new (GtkTreeListRowSorter *self) sizeof (gpointer[MAX_KEY_DEPTH])); if (self->sorter) - result->sort_keys = gtk_sort_keys_ref (gtk_sorter_get_keys (self->sorter)); + result->sort_keys = gtk_sorter_get_keys (self->sorter); result->cached_keys = g_hash_table_new (NULL, NULL); return (GtkSortKeys *) result; diff --git a/gtk/inspector/controllers.c b/gtk/inspector/controllers.c index e5e90e663d..4f41ba3a56 100644 --- a/gtk/inspector/controllers.c +++ b/gtk/inspector/controllers.c @@ -265,6 +265,8 @@ gtk_inspector_controllers_dispose (GObject *object) gtk_widget_unparent (gtk_widget_get_first_child (GTK_WIDGET (self))); + g_clear_object (&self->sizegroup); + G_OBJECT_CLASS (gtk_inspector_controllers_parent_class)->dispose (object); } @@ -274,7 +276,7 @@ gtk_inspector_controllers_class_init (GtkInspectorControllersClass *klass) GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass); - object_class->dispose= gtk_inspector_controllers_dispose; + object_class->dispose = gtk_inspector_controllers_dispose; gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT); } diff --git a/gtk/inspector/gtktreemodelcssnode.c b/gtk/inspector/gtktreemodelcssnode.c index e6d87dc985..2939e438cf 100644 --- a/gtk/inspector/gtktreemodelcssnode.c +++ b/gtk/inspector/gtktreemodelcssnode.c @@ -345,6 +345,8 @@ gtk_tree_model_css_node_finalize (GObject *object) priv->root = NULL; } + g_free (priv->column_types); + G_OBJECT_CLASS (gtk_tree_model_css_node_parent_class)->finalize (object); }