patch-FunctionBar_c 586 B

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