Replaced free() with SDL_free() because related allocation also uses wrapper.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Thu, 04 Dec 2014 21:41:30 +0100
changeset 9266f6355bfca853
parent 9265 562e58dcbb4c
child 9267 6fe4583d7e1f
Replaced free() with SDL_free() because related allocation also uses wrapper.
src/haptic/darwin/SDL_syshaptic.c
src/haptic/linux/SDL_syshaptic.c
src/video/directfb/SDL_DirectFB_video.c
     1.1 --- a/src/haptic/darwin/SDL_syshaptic.c	Thu Dec 04 21:33:59 2014 +0100
     1.2 +++ b/src/haptic/darwin/SDL_syshaptic.c	Thu Dec 04 21:41:30 2014 +0100
     1.3 @@ -551,7 +551,7 @@
     1.4      FFReleaseDevice(haptic->hwdata->device);
     1.5    creat_err:
     1.6      if (haptic->hwdata != NULL) {
     1.7 -        free(haptic->hwdata);
     1.8 +        SDL_free(haptic->hwdata);
     1.9          haptic->hwdata = NULL;
    1.10      }
    1.11      return -1;
     2.1 --- a/src/haptic/linux/SDL_syshaptic.c	Thu Dec 04 21:33:59 2014 +0100
     2.2 +++ b/src/haptic/linux/SDL_syshaptic.c	Thu Dec 04 21:41:30 2014 +0100
     2.3 @@ -441,7 +441,7 @@
     2.4    open_err:
     2.5      close(fd);
     2.6      if (haptic->hwdata != NULL) {
     2.7 -        free(haptic->hwdata);
     2.8 +        SDL_free(haptic->hwdata);
     2.9          haptic->hwdata = NULL;
    2.10      }
    2.11      return -1;
    2.12 @@ -959,7 +959,7 @@
    2.13      return 0;
    2.14  
    2.15    new_effect_err:
    2.16 -    free(effect->hweffect);
    2.17 +    SDL_free(effect->hweffect);
    2.18      effect->hweffect = NULL;
    2.19      return -1;
    2.20  }
     3.1 --- a/src/video/directfb/SDL_DirectFB_video.c	Thu Dec 04 21:33:59 2014 +0100
     3.2 +++ b/src/video/directfb/SDL_DirectFB_video.c	Thu Dec 04 21:41:30 2014 +0100
     3.3 @@ -156,7 +156,7 @@
     3.4      return device;
     3.5    error:
     3.6      if (device)
     3.7 -        free(device);
     3.8 +        SDL_free(device);
     3.9      return (0);
    3.10  }
    3.11