mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
tracers: fix structure leak
https://bugzilla.gnome.org/show_bug.cgi?id=772851
This commit is contained in:
parent
71a2bdeaf7
commit
18d5d118ab
1 changed files with 5 additions and 2 deletions
|
@ -459,11 +459,14 @@ do_post_message_pre (GstStatsTracer * self, guint64 ts, GstElement * elem,
|
|||
{
|
||||
GstElementStats *stats = get_element_stats (self, elem);
|
||||
const GstStructure *msg_s = gst_message_get_structure (msg);
|
||||
GstStructure *s = msg_s ? msg_s : gst_structure_new_empty ("dummy");
|
||||
|
||||
stats->last_ts = ts;
|
||||
/* FIXME: work out whether using NULL instead of a dummy struct would work */
|
||||
gst_tracer_record_log (tr_message, (guint64) (guintptr) g_thread_self (), ts,
|
||||
stats->index, GST_MESSAGE_TYPE_NAME (msg),
|
||||
(msg_s ? msg_s : gst_structure_new_empty ("dummy")));
|
||||
stats->index, GST_MESSAGE_TYPE_NAME (msg), s);
|
||||
if (s != msg_s)
|
||||
gst_structure_free (s);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue