Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed memory leak.

  • Loading branch information
bobbens committed Jul 31, 2008
1 parent 8053281 commit 2cca4cd3393689b2e7fe0b2371dc891b135d5802
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/haptic/darwin/SDL_syshaptic.c
@@ -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;
}

0 comments on commit 2cca4cd

Please sign in to comment.