Adding dispose() as suggested by Jürg Lehni on helma-dev.
This commit is contained in:
parent
6170e10a5a
commit
415a6cbb27
1 changed files with 10 additions and 0 deletions
|
@ -81,6 +81,16 @@ public abstract class ImageWrapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Dispose the Graphics context and null out the image.
|
||||||
|
*/
|
||||||
|
public void dispose() {
|
||||||
|
if (img != null) {
|
||||||
|
g.dispose();
|
||||||
|
img = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the font used to write on this image.
|
* Set the font used to write on this image.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue