ui: Fix FilePicker UAF

This commit is contained in:
Matt Borgerson
2023-05-16 22:01:11 +08:00
committed by mborgerson
parent 9e1f5f2f19
commit 8bea1e38e5
+1
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;
}
}