{
sound_stream_focus_change_reason_e acquired_by;
int sound_behavior;
- char* extra_info;
+ char* extra_info = NULL;
int focus = sound_manager_get_current_recording_focus(&acquired_by, &sound_behavior, &extra_info);
MWR_LOGD("[Recorder] sound focus has changed : %d %d %d %s", focus,
(SOUND_MANAGER_ERROR_NO_DATA != focus ? acquired_by : -1),
}
}
if (extra_info) {
- free (extra_info);
+ free(extra_info);
extra_info = NULL;
}
}
sound_stream_focus_change_reason_e acquired_by;
int sound_behavior;
- char* extra_info;
+ char* extra_info = NULL;
if (SOUND_MANAGER_ERROR_NO_DATA == sound_manager_get_current_recording_focus(&acquired_by, &sound_behavior, &extra_info)) {
MWR_LOGD("[Recorder] Currently no other process has acquired sound focus, start recording");
dependency_resolver_start_recording();
MWR_LOGW("[Recorder] Currently sound focus is acquired by other process, skip recording");
}
if (extra_info) {
- free (extra_info);
+ free(extra_info);
extra_info = NULL;
}
}