$OpenBSD: patch-WINGs_array_c,v 1.2 2010/05/20 10:58:08 espie Exp $ --- WINGs/array.c.orig Tue Oct 12 20:28:08 2004 +++ WINGs/array.c Thu May 20 12:50:56 2010 @@ -230,6 +230,8 @@ WMGetFromArray(WMArray *array, int index) void* WMPopFromArray(WMArray *array) { + wassertr(array->itemCount > 0); + array->itemCount--; return array->items[array->itemCount];