|
From: <eli...@us...> - 2006-12-02 22:21:34
|
Revision: 2686
http://svn.sourceforge.net/java-game-lib/?rev=2686&view=rev
Author: elias_naur
Date: 2006-12-02 14:21:32 -0800 (Sat, 02 Dec 2006)
Log Message:
-----------
Linux: Don't double free the Display connection in the switchDisplayMode error path
Modified Paths:
--------------
trunk/LWJGL/src/native/linux/display.c
Modified: trunk/LWJGL/src/native/linux/display.c
===================================================================
--- trunk/LWJGL/src/native/linux/display.c 2006-11-27 23:04:37 UTC (rev 2685)
+++ trunk/LWJGL/src/native/linux/display.c 2006-12-02 22:21:32 UTC (rev 2686)
@@ -330,7 +330,6 @@
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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|