fix massime memory leak with demos (I blame this on eihrul though, because shrink() calls destructors while remove() does not)