Revision 1219468

Go back to digest for 13th February 2011

Bug Fixes in Networking Tools

Matthias Fuchs committed changes in /trunk/KDE/kdenetwork/kget/core:

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.

File Changes

Modified 6 files
  • /trunk/KDE/kdenetwork/kget/core
  •   /kgetglobaljob.cpp
  •   /kgetglobaljob.h
  •   /kgetkjobadapter.cpp
  •   /kgetkjobadapter.h
  •   /kuiserverjobs.cpp
  •   /kuiserverjobs.h
6 files changed in total