gchar *name; gchar *real_name; gtk_tree_model_get (model, iter, (int)(TravellerDataColumn)C_REALNAME, &real_name, -1); name = g_strdup (real_name); /* except all kinds of transformations here */ g_object_set (G_OBJECT (cell), "text", name, NULL); if (name) { g_free (name); name = NULL; } if (real_name) { g_free (real_name); real_name = NULL; }