mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 03:45:39 +00:00
validate: Fix criticals around NULL structure usage
This commit is contained in:
parent
7d3ada4f4e
commit
9aff82d6bb
1 changed files with 6 additions and 5 deletions
|
@ -650,13 +650,14 @@ _file_get_structures (GFile * file, gchar ** err)
|
|||
g_string_free (l, TRUE);
|
||||
goto failed;
|
||||
}
|
||||
} else {
|
||||
gst_structure_set (structure,
|
||||
"__lineno__", G_TYPE_INT, current_lineno,
|
||||
"__filename__", G_TYPE_STRING, filename, NULL);
|
||||
structures = g_list_append (structures, structure);
|
||||
}
|
||||
g_string_free (l, TRUE);
|
||||
|
||||
gst_structure_set (structure,
|
||||
"__lineno__", G_TYPE_INT, current_lineno,
|
||||
"__filename__", G_TYPE_STRING, filename, NULL);
|
||||
structures = g_list_append (structures, structure);
|
||||
g_string_free (l, TRUE);
|
||||
lineno++;
|
||||
if (*tmp)
|
||||
tmp++;
|
||||
|
|
Loading…
Reference in a new issue