From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Wed, 1 Sep 2021 09:31:06 +0000 (+0100) Subject: If the airplay_gid is not NULL, free it before deleting the player. X-Git-Tag: 4.1-dev~4^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d36f0402542378833bedd3273cb74f769168ec7;p=thirdparty%2Fshairport-sync.git If the airplay_gid is not NULL, free it before deleting the player. --- diff --git a/player.c b/player.c index ac332a43..c95588e9 100644 --- a/player.c +++ b/player.c @@ -1705,6 +1705,9 @@ void player_thread_cleanup_handler(void *arg) { if (conn->stream.type == ast_apple_lossless) terminate_decoders(conn); + if (conn->airplay_gid) + free(conn->airplay_gid); + reset_anchor_info(conn); release_play_lock(conn); conn->rtp_running = 0;