Community Forums

Home » Vuze Forums » Development » Bug Reports


Thread: minor image leak in org.gudy.azureus2.ui.swt.views.stats.VivaldiPanel


Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Pages: 1 - Last Post: Jan 15, 2008 5:51 AM Last Post By: The 8472
yahave

Posts: 5
Registered: 12/26/07
minor image leak in org.gudy.azureus2.ui.swt.views.stats.VivaldiPanel
Posted: Jan 13, 2008 12:14 PM
  Click to reply to this thread Reply
The image stored in the img field is disposed on refresh, but not disposed when the panel is disposed. As a result, an image leaks every time the VivaldiPanel is closed. One fix is to add a disposeListener on the canvas that properly disposes the image.
The following, added in the VivaldiPanel constructor, seems to work for me.

canvas.addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e) {
if (img != null && !img.isDisposed()) {
img.dispose();
}
}

});

The 8472

Posts: 2,147
Registered: 11/13/07
Re: minor image leak in org.gudy.azureus2.ui.swt.views.stats.VivaldiPanel
Posted: Jan 15, 2008 5:51 AM   in response to: yahave in response to: yahave
  Click to reply to this thread Reply
should be fixed in next beta
Legend
Master: 200 - 999 pts
Expert: 150 - 199 pts
Advanced: 100 - 149 pts
Intermediate: 50 - 99 pts
Beginner: 10 - 49 pts
Newbie: 0 - 9 pts
Vuze Staff Member
Vuze Project Developer
Vuze Community Moderator
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums