[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdemultimedia/juk
From:       Scott Wheeler <wheeler () kde ! org>
Date:       2005-04-20 18:40:42
Message-ID: 20050420184042.5760F659 () office ! kde ! org
[Download RAW message or body]

CVS commit by wheeler: 

Fix memory leak.

BUG:103721


  M +4 -0      musicbrainzquery.cpp   1.26
  M +1 -0      playlistitem.cpp   1.108


--- kdemultimedia/juk/musicbrainzquery.cpp  #1.25:1.26
@@ -42,4 +42,5 @@ void MusicBrainzLookup::recognized()
     KTRMLookup::recognized();
     confirmation();
+    delete this;
 }
 
@@ -48,4 +49,5 @@ void MusicBrainzLookup::unrecognized()
     KTRMLookup::unrecognized();
     message(i18n("No matches found."));
+    delete this;
 }
 
@@ -54,4 +56,5 @@ void MusicBrainzLookup::collision()
     KTRMLookup::collision();
     confirmation();
+    delete this;
 }
 
@@ -60,4 +63,5 @@ void MusicBrainzLookup::error()
     KTRMLookup::error();
     message(i18n("Error connecting to MusicBrainz server."));
+    delete this;
 }
 

--- kdemultimedia/juk/playlistitem.cpp  #1.107:1.108
@@ -34,4 +34,5 @@ static void startMusicBrainzQuery(const 
 {
 #if HAVE_MUSICBRAINZ
+    // This deletes itself when finished.
     new MusicBrainzLookup(file);
 #else


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic