ui: Fix FilePicker UAF

This commit is contained in:
Matt Borgerson 2023-01-27 09:48:28 -07:00 committed by mborgerson
parent 9e1f5f2f19
commit 8bea1e38e5

View File

@ -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;
}
}