mirror of https://github.com/xemu-project/xemu.git
ui: Fix FilePicker UAF
This commit is contained in:
parent
9e1f5f2f19
commit
8bea1e38e5
|
@ -322,6 +322,7 @@ bool FilePicker(const char *str_id, const char **buf, const char *filters,
|
|||
if (new_path) {
|
||||
free((void*)*buf);
|
||||
*buf = strdup(new_path);
|
||||
desc = *buf;
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue