summaryrefslogtreecommitdiff
path: root/frontends/beos
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-09-11 17:42:49 +0100
committerVincent Sanders <vince@kyllikki.org>2017-09-11 17:42:49 +0100
commit0a6e8fc0b072da21c7ec9c8d602b7ffad6bd4100 (patch)
treeb9d9d2560485faecad36b24359264a30899d1902 /frontends/beos
parentff312f214e58ceb5b509540a64671d82f82701da (diff)
downloadnetsurf-0a6e8fc0b072da21c7ec9c8d602b7ffad6bd4100.tar.gz
netsurf-0a6e8fc0b072da21c7ec9c8d602b7ffad6bd4100.tar.bz2
fix beos throbber allocation
Diffstat (limited to 'frontends/beos')
-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 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);