Repository navigation
Conversation
| #else | ||
| std::string result; | ||
| char dest[MB_CUR_MAX]; | ||
| char* dest = (char*)malloc(sizeof(char) * MB_CUR_MAX); |
There was a problem hiding this comment.
Should we use std::string instead of char* here? So that RAII will handle freeing resource for us, instead of using malloc()/free() manually
|
Hello @ERSUCC |
|
@nmq443 Thank you for your comments! None of those functions are marked as My preferred solution would be to catch exceptions from these external functions, |
|
@ERSUCC Your comment about So may be Thank you! |
|
Yes, |
When compiling RtAudio on Mac with Clang, it threw a few warnings about arrays being allocated with variable length. Converting these stack arrays to heap arrays with
mallocresolved the warnings.