From 13104117fa79ad75a6b9d25fd4ac156a3bc104f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 30 May 2023 13:23:28 +0300 Subject: [PATCH] decklink: Free SDK strings after usage on Linux While they're const char* they still need to be freed like on Windows and macOS and would be leaked otherwise. Part-of: --- subprojects/gst-plugins-bad/sys/decklink/gstdecklink.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/decklink/gstdecklink.h b/subprojects/gst-plugins-bad/sys/decklink/gstdecklink.h index 13f76cb..5481c7d 100644 --- a/subprojects/gst-plugins-bad/sys/decklink/gstdecklink.h +++ b/subprojects/gst-plugins-bad/sys/decklink/gstdecklink.h @@ -63,7 +63,8 @@ #define COMSTR_T const char* #define CONVERT_COM_STRING(s) #define CONVERT_TO_COM_STRING(s) -#define FREE_COM_STRING(s) +/* While this is a const char*, the string still has to be freed */ +#define FREE_COM_STRING(s) free(s); #define WINAPI #endif /* G_OS_WIN32 */ -- 2.7.4