Vertex memory allocation uses malloc and realloc without checking the result. Throw exceptions that can be caught in the DoRepaint() method in EDA_DRAW_PANEL_GAL when malloc and realloc return a null pointer.