diff options
author | Sven Gothel <[email protected]> | 2014-10-09 06:29:32 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-10-09 06:29:32 +0200 |
commit | 49421eac80d812e52ec1eb40e88a38f10707610f (patch) | |
tree | 33230a830bb970ba3b1db566d64e9f018fec05e7 /src/jogl/classes/com/jogamp/graph/font | |
parent | 84c0dcd490cc0bc0037351d899be811e830ab3fe (diff) |
FontFactory: Fix SecurityException as regression of commit bd24599b21f9787ac989e65b44dc1ba762162f22
- add missing PrivilegedAction around tempFile[0].delete()
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/font')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/font/FontFactory.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java index ba355f4e6..be16e030f 100644 --- a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java +++ b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java @@ -179,7 +179,12 @@ public class FontFactory { bis.close(); } if( null != tempFile[0] ) { - tempFile[0].delete(); + AccessController.doPrivileged(new PrivilegedAction<Object>() { + @Override + public Object run() { + tempFile[0].delete(); + return null; + } } ); } } } |