appdata: Fix leak of id string.

This commit is contained in:
Alexander Larsson
2019-12-19 16:52:58 +01:00
parent cc4ea023f0
commit 7c3e6f7214

View File

@@ -27,7 +27,7 @@
typedef struct
{
const char *id;
char *id;
GHashTable *names;
GHashTable *comments;
char *version;
@@ -55,6 +55,7 @@ component_free (gpointer data)
g_hash_table_unref (component->names);
g_hash_table_unref (component->comments);
g_free (component->id);
g_free (component->version);
g_free (component->license);
g_free (component->content_rating_type);