ges: Fix compilation with latest GLib
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Oct 2018 07:13:07 +0000 (08:13 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Oct 2018 07:14:28 +0000 (08:14 +0100)
commitee7c2d07b86aad60edf4aad77174c583c90e67de
tree14f799e6ecb12be4df5b6d3af30cd38eebb679f3
parent6837a6145089dcc999a22196d61b1d690fbce678
ges: Fix compilation with latest GLib

g_clear_pointer() is now preserving the type of its arguments for the
free function.

ges-xml-formatter.c: In function ‘_dispose’:
ges-xml-formatter.c:1635:7: error: function called through a non-compatible type [-Werror]
       (GDestroyNotify) g_hash_table_unref);
/usr/include/glib-2.0/glib/gmem.h:121:8: note: in definition of macro ‘g_clear_pointer’
       (destroy) (_ptr);                                                        \
        ^~~~~~~

https://bugzilla.gnome.org/show_bug.cgi?id=797310
ges/ges-base-xml-formatter.c
ges/ges-xml-formatter.c