Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed memory leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Jul 31, 2008
1 parent 8053281 commit 2cca4cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -1103,8 +1103,7 @@ SDL_SYS_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect * effect)
SDL_SetError("Haptic: Error removing the effect from the device: %s.",
FFStrError(ret));
}
SDL_free(effect->hweffect->effect.lpvTypeSpecificParams);
effect->hweffect->effect.lpvTypeSpecificParams = NULL;
SDL_SYS_HapticFreeFFEFFECT(&effect->hweffect->effect, effect->effect.type);
SDL_free(effect->hweffect);
effect->hweffect = NULL;
}
Expand Down

0 comments on commit 2cca4cd

Please sign in to comment.