packages/multimedia/grilo-plugins/patches/020-backport-add-missing-calls-to-free.patch
W. Michael Petullo 5cfea02d62 grilo-plugins: update to 0.3.11
Backports patches from grilo-plugins master to support libdmapshare's
4.0 API.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
2020-03-03 22:57:38 -03:00

33 lines
810 B
Diff

diff --git a/src/dmap/grl-daap-db.c b/src/dmap/grl-daap-db.c
index c931d91..f460113 100644
--- a/src/dmap/grl-daap-db.c
+++ b/src/dmap/grl-daap-db.c
@@ -232,6 +232,11 @@ grl_daap_db_add (DMAPDb *_db, DMAPRecord *_record)
g_free (id_s);
g_object_unref (media);
+ g_free(album);
+ g_free(artist);
+ g_free(genre);
+ g_free(title);
+ g_free(url);
return --nextid;
}
diff --git a/src/dmap/grl-dpap-db.c b/src/dmap/grl-dpap-db.c
index 02ffd3a..8be278b 100644
--- a/src/dmap/grl-dpap-db.c
+++ b/src/dmap/grl-dpap-db.c
@@ -177,6 +177,12 @@ grl_dpap_db_add (DMAPDb *_db, DMAPRecord *_record)
g_free (id_s);
g_object_unref (media);
+ g_free(filename);
+ g_free(aspectratio);
+ g_free(format);
+ g_free(comments);
+ g_free(url);
+ g_byte_array_unref(thumbnail);
return --nextid;
}