Fix a memory leak in ca_warn (CoreAudio)

This commit is contained in:
jp9000 2014-02-27 00:20:43 -07:00
parent 1a5220acf1
commit 702c364ceb

View File

@ -83,9 +83,12 @@ static inline void ca_warn(struct coreaudio_data *ca, const char *func,
struct dstr str = {0};
va_start(args, format);
dstr_printf(&str, "[%s]:[device '%s'] ", func, ca->device_name);
dstr_vcatf(&str, format, args);
blog(LOG_WARNING, "%s", str.array);
dstr_free(&str);
va_end(args);
}