null pointer to fix resolution switching crash

SVN revision: 54526
This commit is contained in:
Mike Blumenkrantz 2010-11-12 23:59:35 +00:00
parent d7480da137
commit f80e5cee0b
1 changed files with 1 additions and 0 deletions

View File

@ -741,6 +741,7 @@ _e_randr_event_cb(void *data __UNUSED__, int type, void *ev)
crtc_info->geometry.h = 0;
crtc_info->current_mode = NULL;
if (crtc_info->outputs) eina_list_free(crtc_info->outputs);
crtc_info->outputs = NULL;
//update screensize of necessary
ecore_x_randr_screen_reset(e_randr_screen_info->root);