[Kget] [Bug 265681] kget crash

Matthias Fuchs mat69 at gmx.net
Tue Feb 8 22:13:32 CET 2011


https://bugs.kde.org/show_bug.cgi?id=265681





--- Comment #10 from Matthias Fuchs <mat69 gmx net>  2011-02-08 22:13:32 ---
SVN commit 1219470 by mfuchs:

Backport r1219468
Avoids a dangling pointer.

When doKill is called on KGetJobAdapter or KGetGlobalJob requestStop(KJob*,
TransferHandler*) is emitted.
KUiServerJob reacts on that:
*unregisters the job if it was registered
*stops the transfer or all transfers if transfer is 0.
That way the job is unregistered before its KWidgetJobTracker is destroyed
avoiding a crash.
CCBUG:265681

 M  +6 -0      kgetglobaljob.cpp  
 M  +15 -0     kgetglobaljob.h  
 M  +10 -2     kgetkjobadapter.cpp  
 M  +12 -0     kgetkjobadapter.h  
 M  +40 -11    kuiserverjobs.cpp  
 M  +9 -1      kuiserverjobs.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1219470

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kget mailing list