Linux: Don't double free the Display connection in the switchDisplayMode error path

This commit is contained in:
Elias Naur 2006-12-02 22:21:32 +00:00
parent 0b8e49cb54
commit 4aed85c5bb
1 changed files with 0 additions and 1 deletions

View File

@ -330,7 +330,6 @@ static bool switchDisplayMode(JNIEnv * env, Display *disp, int screen, jint exte
int height = (*env)->GetIntField(env, mode, fid_height);
int freq = (*env)->GetIntField(env, mode, fid_freq);
if (!setMode(env, disp, screen, extension, width, height, freq)) {
XCloseDisplay(disp);
throwException(env, "Could not switch mode.");
return false;
}