Bundle: fix memory leak at init/reset
[fanfix.git] / ui / UIUtils.java
index c7fcf623cd01274d60716658eabcc27a7b46a626..e4eb000c6876f0a2b610da928fb16592cd1d3a4e 100644 (file)
@@ -22,7 +22,6 @@ import javax.swing.UnsupportedLookAndFeelException;
 import javax.swing.event.HyperlinkEvent;
 import javax.swing.event.HyperlinkListener;
 
-import be.nikiroo.fanfix.Instance;
 import be.nikiroo.utils.Version;
 import be.nikiroo.utils.VersionCheck;
 
@@ -107,9 +106,9 @@ public class UIUtils {
         * @param color
         *            the base colour
         * @param x
-        *            the X coordinate
+        *            the X coordinate of the upper left corner
         * @param y
-        *            the Y coordinate
+        *            the Y coordinate of the upper left corner
         * @param width
         *            the width radius
         * @param height
@@ -306,9 +305,9 @@ public class UIUtils {
                                        try {
                                                Desktop.getDesktop().browse(e.getURL().toURI());
                                        } catch (IOException ee) {
-                                               Instance.getInstance().getTraceHandler().error(ee);
+                                               ee.printStackTrace();
                                        } catch (URISyntaxException ee) {
-                                               Instance.getInstance().getTraceHandler().error(ee);
+                                               ee.printStackTrace();
                                        }
                        }
                });