forked from AuroraMiddleware/gtk
textbtree: Fix a compiler warning
This commit is contained in:
parent
1da4782262
commit
cabd18fba0
@ -2415,7 +2415,6 @@ _gtk_text_btree_get_text (const GtkTextIter *start_orig,
|
||||
GtkTextLineSegment *seg;
|
||||
GtkTextLineSegment *end_seg;
|
||||
GString *retval;
|
||||
char *str;
|
||||
GtkTextIter iter;
|
||||
GtkTextIter start;
|
||||
GtkTextIter end;
|
||||
@ -2447,9 +2446,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);
|
||||
return str;
|
||||
return g_string_free (retval, FALSE);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user