summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-06-09 10:10:01 +0100
committerTim-Philipp Müller <tim@centricular.com>2014-06-09 10:10:01 +0100
commitc60f4ecd117202f22719ede718d379f08fde7ef1 (patch)
tree9d9d04410e2ff24498a54d549813ea136370fb12 /gst
parent38cb5e00fe014eabb20a7ef8da050084aab0a649 (diff)
downloadgstreamer-plugins-bad-c60f4ecd117202f22719ede718d379f08fde7ef1.tar.gz
gdp: don't print already-freed string
CID 1221987
Diffstat (limited to 'gst')
-rw-r--r--gst/gdp/dataprotocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gdp/dataprotocol.c b/gst/gdp/dataprotocol.c
index 420cdffd7..721cc60c6 100644
--- a/gst/gdp/dataprotocol.c
+++ b/gst/gdp/dataprotocol.c
@@ -559,8 +559,8 @@ gst_dp_event_from_packet_1_0 (guint header_length, const guint8 * header,
g_strndup ((gchar *) payload, GST_DP_HEADER_PAYLOAD_LENGTH (header));
s = gst_structure_from_string (string, NULL);
if (s == NULL) {
- g_free (string);
GST_WARNING ("Could not parse payload string: %s", string);
+ g_free (string);
return NULL;
}