mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[build,attr] fix WINPR_ATTR_MALLOC
* do not use this attribute if the free function takes pointer to pointer * audio_format_new must be freed by audio_formats_free
This commit is contained in:
committed by
Martin Fleisz
parent
ff1565b7ea
commit
0d68cb4f42
@@ -213,12 +213,11 @@ extern "C"
|
||||
FREERDP_API BOOL audio_format_compatible(const AUDIO_FORMAT* with, const AUDIO_FORMAT* what);
|
||||
|
||||
FREERDP_API void audio_format_free(AUDIO_FORMAT* format);
|
||||
|
||||
WINPR_ATTR_MALLOC(audio_format_free, 1)
|
||||
FREERDP_API AUDIO_FORMAT* audio_format_new(void);
|
||||
|
||||
FREERDP_API void audio_formats_free(AUDIO_FORMAT* formats, size_t count);
|
||||
|
||||
WINPR_ATTR_MALLOC(audio_formats_free, 1)
|
||||
FREERDP_API AUDIO_FORMAT* audio_format_new(void);
|
||||
|
||||
WINPR_ATTR_MALLOC(audio_formats_free, 1)
|
||||
FREERDP_API AUDIO_FORMAT* audio_formats_new(size_t count);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user