src/joystick/beos/SDL_bejoystick.cc
changeset 7719 31b5f9ff36ca
parent 7191 75360622e65f
     1.1 --- a/src/joystick/beos/SDL_bejoystick.cc	Thu Aug 29 08:27:25 2013 -0700
     1.2 +++ b/src/joystick/beos/SDL_bejoystick.cc	Thu Aug 29 08:29:21 2013 -0700
     1.3 @@ -231,12 +231,8 @@
     1.4          if (joystick->hwdata) {
     1.5              joystick->hwdata->stick->Close();
     1.6              delete joystick->hwdata->stick;
     1.7 -            if (joystick->hwdata->new_hats) {
     1.8 -                SDL_free(joystick->hwdata->new_hats);
     1.9 -            }
    1.10 -            if (joystick->hwdata->new_axes) {
    1.11 -                SDL_free(joystick->hwdata->new_axes);
    1.12 -            }
    1.13 +            SDL_free(joystick->hwdata->new_hats);
    1.14 +            SDL_free(joystick->hwdata->new_axes);
    1.15              SDL_free(joystick->hwdata);
    1.16              joystick->hwdata = NULL;
    1.17          }