mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 08:56:25 +00:00
dialog: Don't potentially call SDL_free() on an uninitialized value
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user