Ticket #31814: patch-src_js_jsMacOSX.cxx.diff

File patch-src_js_jsMacOSX.cxx.diff, 451 bytes (added by zakalawe@…, 13 years ago)

New patch for the JS code

  • src/js/jsMacOSX.cxx

    old new  
    261261
    262262void jsJoystick::close()
    263263{
    264         if (os->hidDev != NULL)  (*(os->hidDev))->close(os->hidDev);
    265         if (os) delete os;
     264    if (os) {
     265        if (os->hidDev)  (*(os->hidDev))->close(os->hidDev);
     266        delete os;
     267        os = NULL;
     268    }
    266269}
    267270
    268271/** element enumerator function : pass NULL for top-level*/