mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Replaced free() with SDL_free() because related allocation also uses wrapper.
This commit is contained in:
parent
8dc56f2b31
commit
4f26e7760a
@ -551,7 +551,7 @@ SDL_SYS_HapticOpenFromService(SDL_Haptic * haptic, io_service_t service)
|
|||||||
FFReleaseDevice(haptic->hwdata->device);
|
FFReleaseDevice(haptic->hwdata->device);
|
||||||
creat_err:
|
creat_err:
|
||||||
if (haptic->hwdata != NULL) {
|
if (haptic->hwdata != NULL) {
|
||||||
free(haptic->hwdata);
|
SDL_free(haptic->hwdata);
|
||||||
haptic->hwdata = NULL;
|
haptic->hwdata = NULL;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -441,7 +441,7 @@ SDL_SYS_HapticOpenFromFD(SDL_Haptic * haptic, int fd)
|
|||||||
open_err:
|
open_err:
|
||||||
close(fd);
|
close(fd);
|
||||||
if (haptic->hwdata != NULL) {
|
if (haptic->hwdata != NULL) {
|
||||||
free(haptic->hwdata);
|
SDL_free(haptic->hwdata);
|
||||||
haptic->hwdata = NULL;
|
haptic->hwdata = NULL;
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
@ -959,7 +959,7 @@ SDL_SYS_HapticNewEffect(SDL_Haptic * haptic, struct haptic_effect *effect,
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
new_effect_err:
|
new_effect_err:
|
||||||
free(effect->hweffect);
|
SDL_free(effect->hweffect);
|
||||||
effect->hweffect = NULL;
|
effect->hweffect = NULL;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@ DirectFB_CreateDevice(int devindex)
|
|||||||
return device;
|
return device;
|
||||||
error:
|
error:
|
||||||
if (device)
|
if (device)
|
||||||
free(device);
|
SDL_free(device);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user