validate-report: Don't leak GError

This commit is contained in:
Edward Hervey 2017-05-05 14:57:20 +02:00 committed by Edward Hervey
parent 506e537f82
commit a4b16d54a0

View file

@ -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);