gtk, gdk/win32: the string of g_string_free() is taken from its result, which newer GLib wants used (from warning-cleanups)

This commit is contained in:
Daemonratte 2026-10-18 13:31:17 +02:00
commit dc44051a08
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

View file

@ -1551,8 +1551,7 @@ gdk_dropfiles_filter (GdkXEvent *xev,
g_free (fileName);
g_string_append (result, "\015\012");
}
_gdk_dropfiles_store (result->str);
g_string_free (result, FALSE);
_gdk_dropfiles_store (g_string_free (result, FALSE));
DragFinish (hdrop);

View file

@ -2437,8 +2437,7 @@ _gtk_text_btree_get_text (const GtkTextIter *start_orig,
copy_segment (retval, include_hidden, include_nonchars, &iter, &end);
str = retval->str;
g_string_free (retval, FALSE);
str = g_string_free (retval, FALSE);
return str;
}