![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
8.0 |
|
Assignee:
|
Unassigned |
|
Components:
|
unsupported |
|
Created:
|
20/Aug/12 11:12 PM
|
|
Description:
|
From Fred Chen:
> I identified a memory leak in SwtMapPane class which resides in gt-swt
> module. In the drawFinalImage() method, the local variables: tmpImage and
> tmpGc should be disposed at the end of the method.
>
> I created a little test case to call SwtMapPane. redraw() every second. The
> application eats up memory very quickly until the system runs out of memory.
> After I added following code block to the end of drawFinalImage() method,
> the issue is fixed.
>
> if(tmpImage != null && !tmpImage.isDisposed()){
> tmpImage.dispose();
> tmpImage = null;
> }
>
> if(tmpGc != null && !tmpGc.isDisposed()){
> tmpGc.dispose();
> tmpGc = null;
> }
>
|
|
Project:
|
GeoTools
|
|
Priority:
|
Major
|
|
Reporter:
|
Michael Bedward
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel