mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
Remove unnecessary NULL checks before g_free()
g_free() is NULL-safe
This commit is contained in:
parent
4a52b58b78
commit
d55cc79310
1 changed files with 1 additions and 2 deletions
|
@ -233,7 +233,6 @@ _on_text_changed (GtkTextBuffer * text, struct text_view_state *state)
|
||||||
GtkTextIter start, end;
|
GtkTextIter start, end;
|
||||||
|
|
||||||
gtk_text_buffer_get_bounds (text, &start, &end);
|
gtk_text_buffer_get_bounds (text, &start, &end);
|
||||||
if (state->str)
|
|
||||||
g_free (state->str);
|
g_free (state->str);
|
||||||
state->str = gtk_text_buffer_get_text (text, &start, &end, FALSE);
|
state->str = gtk_text_buffer_get_text (text, &start, &end, FALSE);
|
||||||
g_object_set (state->state->shader, "update-shader", TRUE, NULL);
|
g_object_set (state->state->shader, "update-shader", TRUE, NULL);
|
||||||
|
|
Loading…
Reference in a new issue