| Summary: | Duplicated code in MIDItoStream() | ||
|---|---|---|---|
| Product: | SDL_mixer | Reporter: | manuel.montezelo |
| Component: | misc | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | philipp.wiesemann |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
manuel.montezelo
2013-09-13 18:42:15 UTC
Yup, they are indeed duplicated. Thanks! http://hg.libsdl.org/SDL_mixer/rev/52764006cd23 I think there was a typo in the second (now removed) check, It should have checked the return value of calloc(). track = (MIDIEvent**) calloc(1, sizeof(MIDIEvent*) * mididata->nTracks); if (NULL == track) return NULL; All other return values of calloc() in this file are checked for being not 0. Oh, good point. This is fixed. http://hg.libsdl.org/SDL_mixer/rev/8a04342cf1e1 |