mirror of https://github.com/libsdl-org/SDL.git
dialog: Don't potentially call SDL_free() on an uninitialized value
This commit is contained in:
parent
596651f13a
commit
800c35a2c1
|
|
@ -261,7 +261,7 @@ cleanup:
|
|||
dbus->connection_remove_filter(conn, &DBus_MessageFilter, signal_data);
|
||||
|
||||
if (path) {
|
||||
for (size_t i = 0; i < length; ++i) {
|
||||
for (size_t i = 0; i < current; ++i) {
|
||||
SDL_free((char *)path[i]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue