]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
If the airplay_gid is not NULL, free it before deleting the player.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 1 Sep 2021 09:31:06 +0000 (10:31 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 1 Sep 2021 09:31:06 +0000 (10:31 +0100)
player.c

index ac332a4366d955fdfc363812fae094fc833b87e1..c95588e9a47e6598a99830a8725c4e9208f5a463 100644 (file)
--- 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;