Fixes: leak of requests in engine.
authorMathias Hasselmann <mathias@openismus.com>
Tue, 15 Jun 2010 20:12:27 +0000 (22:12 +0200)
committerMathias Hasselmann <mathias@openismus.com>
Tue, 15 Jun 2010 20:29:45 +0000 (22:29 +0200)
commit6d03997511b2a84fe7aa30b040593383650d4810
tree5506a78f241600ecb9cbc532a13a963378b1b89b
parent7a931b944474edd700470c62e1e8f396e76d7ee4
Fixes: leak of requests in engine.

RevBy: Murray Cumming
Details:

 * src/engine/engine.cpp: startRequest(), requestDestroyed():
   Only connect destroyed() signal when needed. Don't try to dynamic_cast the
   destroyed object, because it cannot work at that point.
 * src/engine/engine.h: requestDestroyed(): Rename that slot.
 * src/engine/engine_p.h: m_requests: Use void* for key.

Initial patch by Murray Cumming
src/engine/engine.cpp
src/engine/engine.h
src/engine/engine_p.h