src/haptic/linux/SDL_syshaptic.c
changeset 9266 f6355bfca853
parent 9251 198989b162d3
child 9360 c671d8ca48a1
equal deleted inserted replaced
9265:562e58dcbb4c 9266:f6355bfca853
   439 
   439 
   440     /* Error handling */
   440     /* Error handling */
   441   open_err:
   441   open_err:
   442     close(fd);
   442     close(fd);
   443     if (haptic->hwdata != NULL) {
   443     if (haptic->hwdata != NULL) {
   444         free(haptic->hwdata);
   444         SDL_free(haptic->hwdata);
   445         haptic->hwdata = NULL;
   445         haptic->hwdata = NULL;
   446     }
   446     }
   447     return -1;
   447     return -1;
   448 }
   448 }
   449 
   449 
   957     }
   957     }
   958 
   958 
   959     return 0;
   959     return 0;
   960 
   960 
   961   new_effect_err:
   961   new_effect_err:
   962     free(effect->hweffect);
   962     SDL_free(effect->hweffect);
   963     effect->hweffect = NULL;
   963     effect->hweffect = NULL;
   964     return -1;
   964     return -1;
   965 }
   965 }
   966 
   966 
   967 
   967