src/haptic/darwin/SDL_syshaptic.c
changeset 9266 f6355bfca853
parent 9147 6bf589c8d549
child 9548 2563cb778950
equal deleted inserted replaced
9265:562e58dcbb4c 9266:f6355bfca853
   549     /* Error handling */
   549     /* Error handling */
   550   open_err:
   550   open_err:
   551     FFReleaseDevice(haptic->hwdata->device);
   551     FFReleaseDevice(haptic->hwdata->device);
   552   creat_err:
   552   creat_err:
   553     if (haptic->hwdata != NULL) {
   553     if (haptic->hwdata != NULL) {
   554         free(haptic->hwdata);
   554         SDL_free(haptic->hwdata);
   555         haptic->hwdata = NULL;
   555         haptic->hwdata = NULL;
   556     }
   556     }
   557     return -1;
   557     return -1;
   558 
   558 
   559 }
   559 }