mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 23:14:46 +00:00
vaapisink: fix minor memory leak in debug mode.
The gst_video_colorimetry_to_string() function returns a newly created string that represents the GstVideoColorimetry value. So, that needs to be released after usage, in e.g. GST_DEBUG().
This commit is contained in:
parent
73b726418b
commit
7524b5eea6
1 changed files with 7 additions and 1 deletions
|
@ -1282,7 +1282,13 @@ update_colorimetry (GstVaapiSink * sink, GstVideoColorimetry * cinfo)
|
|||
else
|
||||
sink->color_standard = 0;
|
||||
|
||||
GST_DEBUG ("colorimetry %s", gst_video_colorimetry_to_string (cinfo));
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
{
|
||||
gchar *const colorimetry_string = gst_video_colorimetry_to_string (cinfo);
|
||||
GST_DEBUG ("colorimetry %s", colorimetry_string);
|
||||
g_free (colorimetry_string);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue