projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
506e537
)
validate-report: Don't leak GError
author
Edward Hervey
<edward@centricular.com>
Fri, 5 May 2017 12:57:20 +0000
(14:57 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Fri, 5 May 2017 13:27:37 +0000
(15:27 +0200)
validate/gst/validate/gst-validate-report.c
patch
|
blob
|
history
diff --git
a/validate/gst/validate/gst-validate-report.c
b/validate/gst/validate/gst-validate-report.c
index f23905184ae0f7ec469512ebc9b46ea3a1409350..d79a459475d8c07d923de915413486744eed8f82 100644
(file)
--- a/
validate/gst/validate/gst-validate-report.c
+++ b/
validate/gst/validate/gst-validate-report.c
@@
-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);