12345678910111213141516171819 |
- $OpenBSD: patch-FunctionBar_c,v 1.1.1.1 2016/11/16 19:48:19 juanfra Exp $
- --- FunctionBar.c.orig Tue Nov 15 16:48:23 2016
- +++ FunctionBar.c Tue Nov 15 16:48:45 2016
- @@ -72,14 +72,8 @@ FunctionBar* FunctionBar_new(const char** functions, c
- }
-
- void FunctionBar_delete(FunctionBar* this) {
- - for (int i = 0; i < 15 && this->functions[i]; i++) {
- - free(this->functions[i]);
- - }
- free(this->functions);
- if (!this->staticData) {
- - for (int i = 0; i < this->size; i++) {
- - free(this->keys[i]);
- - }
- free(this->keys);
- free(this->events);
- }
|