diff --git a/multi_button.c b/multi_button.c index 1b24854..ff16515 100644 --- a/multi_button.c +++ b/multi_button.c @@ -179,6 +179,7 @@ void button_stop(struct Button* handle) if (entry == handle) { *curr = entry->next; // free(entry); + return; } else curr = &entry->next; }