mirror of https://github.com/FreeRDP/FreeRDP
[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:
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);
|
||||
|
||||
|
|
|
@ -159,8 +159,6 @@ extern "C"
|
|||
/* encoder functions */
|
||||
|
||||
WINPR_API void WinPrAsn1Encoder_Free(WinPrAsn1Encoder** penc);
|
||||
|
||||
WINPR_ATTR_MALLOC(WinPrAsn1Encoder_Free, 1)
|
||||
WINPR_API WinPrAsn1Encoder* WinPrAsn1Encoder_New(WinPrAsn1EncodingRule encoding);
|
||||
|
||||
WINPR_API void WinPrAsn1Encoder_Reset(WinPrAsn1Encoder* enc);
|
||||
|
|
|
@ -25,9 +25,10 @@
|
|||
|
||||
typedef struct winpr_int_rc4_ctx winpr_int_RC4_CTX;
|
||||
|
||||
void winpr_int_rc4_free(winpr_int_RC4_CTX* ctx);
|
||||
|
||||
WINPR_ATTR_MALLOC(winpr_int_rc4_free, 1)
|
||||
winpr_int_RC4_CTX* winpr_int_rc4_new(const BYTE* key, size_t keylength);
|
||||
BOOL winpr_int_rc4_update(winpr_int_RC4_CTX* ctx, size_t length, const BYTE* input, BYTE* output);
|
||||
void winpr_int_rc4_free(winpr_int_RC4_CTX* ctx);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue