memory leak cleanups (valgrind) in airplay_video + http_handlers

This commit is contained in:
F. Duncanh
2025-11-14 18:38:07 -05:00
parent 47da1e03db
commit 372b0ab789
5 changed files with 114 additions and 76 deletions

View File

@@ -33,6 +33,18 @@
#include "raop_rtp_mirror.h"
#include "raop_ntp.h"
static void
plist_mem_free_wrapper(char * plist_ptr) {
/* wrapper for plist_mem_free, only available since libplist 2.3.0 */
if (plist_ptr) {
#ifdef PLIST_230
plist_mem_free (plst_ptr);
#else
free (plist_ptr);
#endif
}
}
struct raop_s {
/* Callbacks for audio and video */
raop_callbacks_t callbacks;