summaryrefslogtreecommitdiffstats
path: root/src/tk
diff options
context:
space:
mode:
Diffstat (limited to 'src/tk')
-rw-r--r--src/tk/grid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tk/grid.c b/src/tk/grid.c
index aedc228..5434d2e 100644
--- a/src/tk/grid.c
+++ b/src/tk/grid.c
@@ -301,6 +301,7 @@ mftk_grid_new(int rows, int cols, int row_spacing, int col_spacing, ...)
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
"Couldn't create widget: %s",
strerror(errno));
+ free(children);
return NULL;
}