Randr: Fix null dereference.

CID1181926
This commit is contained in:
Tom Hacohen 2014-12-16 14:56:10 +00:00
parent 01f43e3618
commit 4aef218d28
1 changed files with 7 additions and 8 deletions

View File

@ -1094,7 +1094,13 @@ _e_randr_output_crtc_find(E_Randr_Output *output)
goto done;
}
}
crtc = NULL;
error:
free(possible);
free(modes);
output->crtc = NULL;
return;
done:
free(possible);
@ -1102,13 +1108,6 @@ done:
output->crtcid = crtc->xid;
output->crtc = crtc;
return;
error:
free(possible);
free(modes);
output->crtc = NULL;
}
static void