Browse Source

Fix the allocation of the spect->frames array. [clang scan-build]

master
Reece H. Dunn 9 years ago
parent
commit
ae0d188c73
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/spect.c

+ 1
- 1
src/libespeak-ng/spect.c View File

} }
free(spect->frames); free(spect->frames);
} }
spect->frames = malloc(sizeof(SpectFrame) * n);
spect->frames = calloc(n, sizeof(SpectFrame *));


spect->numframes = 0; spect->numframes = 0;
spect->max_x = 3000; spect->max_x = 3000;

Loading…
Cancel
Save