mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
structure-parser: define GES_STRUCTURE_PARSER macro
And fix trivial leakages of internal list structure. https://bugzilla.gnome.org/show_bug.cgi?id=755716
This commit is contained in:
parent
7d1e101072
commit
c8b3e13a9c
2 changed files with 4 additions and 8 deletions
|
@ -32,15 +32,10 @@ ges_structure_parser_init (GESStructureParser * self)
|
|||
static void
|
||||
_finalize (GObject * self)
|
||||
{
|
||||
GList *tmp;
|
||||
GESStructureParser *parser = GES_STRUCTURE_PARSER (self);
|
||||
|
||||
for (tmp = ((GESStructureParser *) self)->structures; tmp; tmp = tmp->next) {
|
||||
gst_structure_free (tmp->data);
|
||||
}
|
||||
|
||||
for (tmp = ((GESStructureParser *) self)->wrong_strings; tmp; tmp = tmp->next) {
|
||||
g_free (tmp->data);
|
||||
}
|
||||
g_list_free_full (parser->structures, (GDestroyNotify) gst_structure_free);
|
||||
g_list_free_full (parser->wrong_strings, (GDestroyNotify) g_free);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
G_BEGIN_DECLS
|
||||
|
||||
#define GES_TYPE_STRUCTURE_PARSER ges_structure_parser_get_type()
|
||||
#define GES_STRUCTURE_PARSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_STRUCTURE_PARSER, GESStructureParser))
|
||||
|
||||
typedef struct _GESStructureParser GESStructureParser;
|
||||
typedef struct _GESStructureParserClass GESStructureParserClass;
|
||||
|
|
Loading…
Reference in a new issue