From: Holger Schemel Date: Sat, 1 Dec 2018 10:41:54 +0000 (+0100) Subject: fixed potential crash bug with empty (padding) element buttons in editor X-Git-Tag: 4.1.2.0~89 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b77c449c5eb0d244bd0367746ce45da07b89e38a;hp=b77c449c5eb0d244bd0367746ce45da07b89e38a;p=rocksndiamonds.git fixed potential crash bug with empty (padding) element buttons in editor This fixes a bug that can cause a crash when accessing memory that was already free()'ed again, because the variable that contains the amount of allocated memory is not updated when memory allocation changes. The bug is fixed by updating that variable when memory is allocated. ---