mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
resindvdsrc: fix minor memory leak when creating title info message
This commit is contained in:
parent
c9abe8c50d
commit
078b82d6d1
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <gmodule.h>
|
#include <gmodule.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
@ -2491,6 +2492,7 @@ rsn_dvdsrc_post_title_info (GstElement * element)
|
||||||
} else {
|
} else {
|
||||||
g_value_set_uint64 (&item, gst_util_uint64_scale (duration, GST_SECOND,
|
g_value_set_uint64 (&item, gst_util_uint64_scale (duration, GST_SECOND,
|
||||||
90000));
|
90000));
|
||||||
|
free (times);
|
||||||
}
|
}
|
||||||
gst_value_array_append_value (&array, &item);
|
gst_value_array_append_value (&array, &item);
|
||||||
g_value_unset (&item);
|
g_value_unset (&item);
|
||||||
|
|
Loading…
Reference in a new issue