mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
qtdemux: Fix string memory leak
The string got using g_strdup_printf will be allocated memory and should be freed after use. https://bugzilla.gnome.org/show_bug.cgi?id=758161
This commit is contained in:
parent
8ef6ecc244
commit
0d4e3847f0
1 changed files with 3 additions and 0 deletions
|
@ -12473,6 +12473,7 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
|
||||||
g_snprintf (fourstr, 5, "%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
|
g_snprintf (fourstr, 5, "%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
|
||||||
s = g_strdup_printf ("video/x-gst-fourcc-%s", g_strstrip (fourstr));
|
s = g_strdup_printf ("video/x-gst-fourcc-%s", g_strstrip (fourstr));
|
||||||
caps = gst_caps_new_empty_simple (s);
|
caps = gst_caps_new_empty_simple (s);
|
||||||
|
g_free (s);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12762,6 +12763,7 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
|
||||||
g_snprintf (fourstr, 5, "%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
|
g_snprintf (fourstr, 5, "%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
|
||||||
s = g_strdup_printf ("audio/x-gst-fourcc-%s", g_strstrip (fourstr));
|
s = g_strdup_printf ("audio/x-gst-fourcc-%s", g_strstrip (fourstr));
|
||||||
caps = gst_caps_new_empty_simple (s);
|
caps = gst_caps_new_empty_simple (s);
|
||||||
|
g_free (s);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12822,6 +12824,7 @@ qtdemux_sub_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
|
||||||
g_snprintf (fourstr, 5, "%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
|
g_snprintf (fourstr, 5, "%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
|
||||||
s = g_strdup_printf ("text/x-gst-fourcc-%s", g_strstrip (fourstr));
|
s = g_strdup_printf ("text/x-gst-fourcc-%s", g_strstrip (fourstr));
|
||||||
caps = gst_caps_new_empty_simple (s);
|
caps = gst_caps_new_empty_simple (s);
|
||||||
|
g_free (s);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue