rem: for (i = 0; i < num_monitors; ++i) { glgfx_monitor_destroy(monitors[i]); monitors[i] = NULL;
add: for (i = 0; i < glgfx_num_monitors; ++i) { glgfx_monitor_destroy(glgfx_monitors[i]); glgfx_monitors[i] = NULL;
context: void glgfx_destroy_monitors(void) {  int i;  for (i = 0; i < num_monitors; ++i) {    glgfx_monitor_destroy(monitors[i]);    monitors[i] = NULL;  }  num_monitors = 0;}