From 4aed85c5bb3edc5b54f5f753ca04eb8036755d64 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 2 Dec 2006 22:21:32 +0000 Subject: [PATCH] Linux: Don't double free the Display connection in the switchDisplayMode error path --- src/native/linux/display.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/native/linux/display.c b/src/native/linux/display.c index ab20089f..00a42efa 100644 --- a/src/native/linux/display.c +++ b/src/native/linux/display.c @@ -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; }