gdp: don't print already-freed string

CID 1221987
This commit is contained in:
Tim-Philipp Müller 2014-06-09 10:10:01 +01:00
parent 38cb5e00fe
commit c60f4ecd11

View file

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