gtk, win32: use the result of g_string_free()
From the warning-cleanups branch.
This commit is contained in:
parent
20bdcce69b
commit
aecee2b1ac
2 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -2439,8 +2439,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue