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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4738>
This commit is contained in:
Sebastian Dröge 2023-05-30 13:23:28 +03:00 committed by Sebastian Dröge
parent 59ca9ef342
commit a2850bcb88

View file

@ -63,7 +63,8 @@
#define COMSTR_T const char* #define COMSTR_T const char*
#define CONVERT_COM_STRING(s) #define CONVERT_COM_STRING(s)
#define CONVERT_TO_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 #define WINAPI
#endif /* G_OS_WIN32 */ #endif /* G_OS_WIN32 */