Remove un-needed check for NULL pointer. They were previously checked just before.
This commit is contained in:
@@ -648,9 +648,7 @@ SDL_GetPowerInfo_Linux_org_freedesktop_upower(SDL_PowerState *state, int *second
|
||||
check_upower_device(dbus->system_conn, paths[i], state, seconds, percent);
|
||||
}
|
||||
|
||||
if (dbus) {
|
||||
dbus->free_string_array(paths);
|
||||
}
|
||||
dbus->free_string_array(paths);
|
||||
#endif /* SDL_USE_LIBDBUS */
|
||||
|
||||
return retval;
|
||||
|
||||
Reference in New Issue
Block a user