LAB: Fix several cppcheck errors
This commit is contained in:
parent
93e3ba9edd
commit
b76a624c9a
7 changed files with 26 additions and 32 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue