Commit e273d907 authored by Bastien Nocera's avatar Bastien Nocera

plparser: Add g_auto cleanup support

parent efd383cd
......@@ -69,6 +69,8 @@ typedef struct {
TotemPlParserPrivate *priv;
} TotemPlParser;
G_DEFINE_AUTOPTR_CLEANUP_FUNC(TotemPlParser, g_object_unref)
/* Known metadata fields */
/**
......@@ -395,6 +397,8 @@ typedef GHashTable TotemPlParserMetadata;
GType totem_pl_parser_metadata_get_type (void) G_GNUC_CONST;
#define TOTEM_TYPE_PL_PARSER_METADATA (totem_pl_parser_metadata_get_type())
G_DEFINE_AUTOPTR_CLEANUP_FUNC(TotemPlParserMetadata, g_hash_table_destroy)
G_END_DECLS
#endif /* TOTEM_PL_PARSER_H */
......@@ -41,6 +41,8 @@ typedef struct {
GObject parent_instance;
} TotemPlPlaylist;
G_DEFINE_AUTOPTR_CLEANUP_FUNC(TotemPlPlaylist, g_object_unref)
/**
* TotemPlPlaylistClass:
* @parent_class: the parent class
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment