Fixes: leak of requests in engine.
authorMathias Hasselmann <mathias@openismus.com>
Tue, 15 Jun 2010 20:12:27 +0000 (22:12 +0200)
committerMurray Cumming <murrayc@murrayc.com>
Thu, 17 Jun 2010 07:40:39 +0000 (09:40 +0200)
commit693bc31f371df7212786b96c49c3e601e7e6d40b
tree5506a78f241600ecb9cbc532a13a963378b1b89b
parent9d624699dddcaf4a37fe7cad05f1c8c70e8b1987
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