mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Free strdup'ed values
This commit is contained in:
parent
047ffe9d30
commit
615fc0432f
@ -281,13 +281,16 @@ static char** waiting_argv;
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ui_msg_window_state msg_window_state;
|
|
||||||
const ui_msg_window_t *msg_window = ui_companion_driver_get_msg_window_ptr();
|
const ui_msg_window_t *msg_window = ui_companion_driver_get_msg_window_ptr();
|
||||||
if (msg_window)
|
if (msg_window)
|
||||||
{
|
{
|
||||||
msg_window_state.text = strdup("Cannot open multiple files");
|
ui_msg_window_state msg_window_state;
|
||||||
msg_window_state.text = strdup("RetroArch");
|
msg_window_state.text = strdup("Cannot open multiple files");
|
||||||
|
msg_window_state.title = strdup("RetroArch");
|
||||||
msg_window->information(&msg_window_state);
|
msg_window->information(&msg_window_state);
|
||||||
|
|
||||||
|
free(msg_window_state.text);
|
||||||
|
free(msg_window_state.title);
|
||||||
}
|
}
|
||||||
[sender replyToOpenOrPrint:NSApplicationDelegateReplyFailure];
|
[sender replyToOpenOrPrint:NSApplicationDelegateReplyFailure];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user