summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-09-11 16:42:49 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2017-09-11 16:42:49 (GMT)
commit0a6e8fc0b072da21c7ec9c8d602b7ffad6bd4100 (patch)
treeb9d9d2560485faecad36b24359264a30899d1902
parentff312f214e58ceb5b509540a64671d82f82701da (diff)
downloadnetsurf-0a6e8fc0b072da21c7ec9c8d602b7ffad6bd4100.tar.gz
netsurf-0a6e8fc0b072da21c7ec9c8d602b7ffad6bd4100.tar.bz2
fix beos throbber allocation
-rw-r--r--frontends/beos/throbber.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/beos/throbber.cpp b/frontends/beos/throbber.cpp
index 27ed423..315afef 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);