LAB: Fix several cppcheck errors

This commit is contained in:
Strangerke 2015-11-27 21:52:31 +01:00 committed by Willem Jan Palenstijn
parent 93e3ba9edd
commit b76a624c9a
7 changed files with 26 additions and 32 deletions

View file

@ -64,10 +64,10 @@ Gadget *createButton(uint16 x, uint16 y, uint16 id, uint16 key, Image *im, Image
void freeButtonList(Gadget *gptrlist) {
Gadget *gptr, *next = gptrlist;
Gadget *next = gptrlist;
while (next) {
gptr = next;
Gadget *gptr = next;
next = next->NextGadget;
free(gptr);