mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
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:
parent
59ca9ef342
commit
a2850bcb88
1 changed files with 2 additions and 1 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue