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

List:       kde-multimedia
Subject:    kaboodle leak
From:       Stefan Westerfeld <stefan () space ! twc ! de>
Date:       2001-07-29 11:58:38
[Download RAW message or body]

   Hi!

If you use kaboodle in konqueror, play some mp3, hit the back button and play
another mp3, you'll see an assertion fail in the Arts::ObjectManager
constructor.

 * upon playing the first mp3, a new Arts::Dispatcher is created (by kaboodles
   KArtsDispatcher)
 * hitting play, the file is played
 * upon hitting back, the Arts::Dispatcher is destroyed again (by kaboodles
   KArtsDispatcher) - however, it emits an

   warning: leaving MCOP Dispatcher and still 1 object references alive.

   message - the problem with this message is, that it prevents the Dispatcher
   from freeing the ObjectManager (as there are still living objects)
 * upon playing the mp3 again, the ObjectManager is still there, which causes
   aRts to fail initializing again (-> assertion fails -> crash)

Adding

    delete d->playobj;					/* <- this line */
    d->playobj = factory.createPlayObject(d->file, true);

in kaboodle Engine::reload() fixes this.

   Cu... Stefan
-- 
  -* Stefan Westerfeld, stefan@space.twc.de (PGP!), Hamburg/Germany
     KDE Developer, project infos at http://space.twc.de/~stefan/kde *-         
_______________________________________________
Kde-multimedia mailing list
Kde-multimedia@master.kde.org
http://master.kde.org/mailman/listinfo/kde-multimedia

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

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