PsppireVarView: Use g_realloc instead of xrealloc
authorjdarrington <john@darrington.wattle.id.au>
Sun, 9 Aug 2020 14:19:16 +0000 (16:19 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 16 Aug 2020 07:14:40 +0000 (09:14 +0200)
src/ui/gui/psppire-var-view.c

index 2e019d594652beb00b2c4a505663f7ea437fe369..360bfe0febf618f686b7a959f2f81faca821a3f8 100644 (file)
@@ -229,7 +229,7 @@ psppire_var_view_set_property (GObject         *object,
        gint c;
        var_view->n_cols = g_value_get_int (value);
 
-       var_view->cols = xrealloc (var_view->cols, sizeof (GType) *  var_view->n_cols);
+       var_view->cols = g_realloc (var_view->cols, sizeof (GType) *  var_view->n_cols);
 
        for (c = 0 ; c < var_view->n_cols; ++c)
          var_view->cols[c] = PSPPIRE_VAR_PTR_TYPE;