mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +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 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 */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue