[banshee] TrackInfoDisplay: Dispose the popup's old pixbuf



commit 25c44283f57fe64be1ad04a21c0b94fb6b728731
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Feb 17 10:59:06 2011 -0600

    TrackInfoDisplay: Dispose the popup's old pixbuf

 .../Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs
index 42eed54..9be1a4b 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs
@@ -319,6 +319,10 @@ namespace Banshee.Gui.Widgets
 
             popup.Label = String.Format ("{0} - {1}", CurrentTrack.DisplayArtistName,
                 CurrentTrack.DisplayAlbumTitle);
+
+            if (popup.Image != null) {
+                ArtworkManager.DisposePixbuf (popup.Image);
+            }
             popup.Image = pixbuf;
 
             if (in_thumbnail_region) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]