memory leak in GstPlayer
I noticed this when using gtk4's gstreamer media support:
==22863== 550 (96 direct, 454 indirect) bytes in 1 blocks are definitely lost in loss record 32,826 of 34,782
==22863== at 0x484586F: malloc (vg_replace_malloc.c:381)
==22863== by 0x50D5278: g_malloc (gmem.c:125)
==22863== by 0x50EDBA5: g_slice_alloc (gslice.c:1072)
==22863== by 0x50EFBCC: g_slice_alloc0 (gslice.c:1098)
==22863== by 0x51F2F45: g_type_create_instance (gtype.c:1911)
==22863== by 0x51DAE37: g_object_new_internal (gobject.c:2011)
==22863== by 0x51DC080: g_object_new_with_properties (gobject.c:2181)
==22863== by 0x51DCB20: g_object_new (gobject.c:1821)
==22863== by 0x9B0B7B7: UnknownInlinedFun (gstplay-media-info.c:480)
==22863== by 0x9B0B7B7: UnknownInlinedFun (gstplay-media-info.c:500)
==22863== by 0x9B0B7B7: gst_play_stream_info_copy (gstplay-media-info.c:553)
==22863== by 0x9B0C987: gst_play_media_info_copy (gstplay-media-info.c:597)
==22863== by 0x9B0CA41: on_media_info_updated (gstplay.c:1671)
==22863== by 0x9B0F5CE: state_changed_cb (gstplay.c:1287)
GTK's media-info-updated handler does not take any references, so I don't think the issue is on the GTK side.