mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
validate-report: Don't leak GError
This commit is contained in:
parent
506e537f82
commit
a4b16d54a0
1 changed files with 4 additions and 0 deletions
|
@ -420,6 +420,8 @@ gst_validate_send (JsonNode * root)
|
|||
|
||||
g_free (message);
|
||||
g_object_unref (jgen);
|
||||
if (error)
|
||||
g_error_free (error);
|
||||
g_idle_add ((GSourceFunc) gst_validate_send, root);
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
@ -431,6 +433,8 @@ gst_validate_send (JsonNode * root)
|
|||
|
||||
g_free (message);
|
||||
g_object_unref (jgen);
|
||||
if (error)
|
||||
g_error_free (error);
|
||||
|
||||
done:
|
||||
json_node_free (root);
|
||||
|
|
Loading…
Reference in a new issue