fix beos throbber allocation

This commit is contained in:
Vincent Sanders 2017-09-11 17:42:49 +01:00
parent ff312f214e
commit 0a6e8fc0b0
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ bool nsbeos_throbber_initialise_from_png(const int frames, ...)
return false;
}
throb = (struct nsbeos_throbber *)malloc(sizeof(throb));
throb = (struct nsbeos_throbber *)malloc(sizeof(*throb));
throb->nframes = frames;
throb->framedata = (BBitmap **)malloc(sizeof(BBitmap *) * throb->nframes);