Skip to content

Commit

Permalink
fix build with old versions of glib
Browse files Browse the repository at this point in the history
  • Loading branch information
v1cont committed Jun 22, 2024
1 parent f8aca69 commit 1153a3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,11 @@ get_data_as_string (GtkTreeIter *iter)
}

str->str[str->len-1] = '\0';
#if GLIB_CHECK_VERSION(2,76,0)
res = g_string_free_and_steal (str);
#else
res = g_string_free (str, FALSE);
#endif

return res;
}
Expand Down

0 comments on commit 1153a3e

Please sign in to comment.