Replace g_new0 with GEDA_MEM_ALLOC0