diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-09-11 17:42:49 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-09-11 17:42:49 +0100 |
commit | 0a6e8fc0b072da21c7ec9c8d602b7ffad6bd4100 (patch) | |
tree | b9d9d2560485faecad36b24359264a30899d1902 | |
parent | ff312f214e58ceb5b509540a64671d82f82701da (diff) | |
download | netsurf-0a6e8fc0b072da21c7ec9c8d602b7ffad6bd4100.tar.gz netsurf-0a6e8fc0b072da21c7ec9c8d602b7ffad6bd4100.tar.bz2 |
fix beos throbber allocation
-rw-r--r-- | frontends/beos/throbber.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/beos/throbber.cpp b/frontends/beos/throbber.cpp index 27ed42352..315afef83 100644 --- a/frontends/beos/throbber.cpp +++ b/frontends/beos/throbber.cpp @@ -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); |