Author: echatellier Date: 2012-02-09 15:07:29 +0100 (Thu, 09 Feb 2012) New Revision: 2791 Url: http://chorem.org/repositories/revision/jtimer/2791 Log: Free structure pointer Modified: trunk/src/main/java/org/chorem/jtimer/ui/system/unix/UnixSystemInfo.java Modified: trunk/src/main/java/org/chorem/jtimer/ui/system/unix/UnixSystemInfo.java =================================================================== --- trunk/src/main/java/org/chorem/jtimer/ui/system/unix/UnixSystemInfo.java 2012-02-09 10:31:10 UTC (rev 2790) +++ trunk/src/main/java/org/chorem/jtimer/ui/system/unix/UnixSystemInfo.java 2012-02-09 14:07:29 UTC (rev 2791) @@ -36,8 +36,7 @@ * Linux system info. * * Based on - * https://jdic.dev.java.net/source/browse/jdic/src/incubator/systeminfo - * /src/unix/native/jni/systeminfo.c?rev=1.1.1.1&view=markup source code. + * http://java.net/projects/jdic/sources/svn/content/trunk/src/incubator/system... source code. * * @author chatellier * @version $Revision$ @@ -50,16 +49,7 @@ /** log. */ private static Log log = LogFactory.getLog(UnixSystemInfo.class); - /** - * Constructor. - * - * Package visibility - */ - public UnixSystemInfo() { - } - /* - * (non-Javadoc) * @see org.chorem.jtimer.ui.system.SystemInfo#getIdleTime() */ @Override @@ -137,8 +127,7 @@ } // free resources - // TODO should be freed - //X11.INSTANCE.XFree(screenSaverInfo); + X11.INSTANCE.XFree(screenSaverInfo.getPointer()); } // free resources
participants (1)
-
echatellier@users.chorem.org