NetworkCache: Not using const QString references between threads
authorBruno Abinader <bruno.abinader@openbossa.org>
Fri, 29 Oct 2010 21:15:50 +0000 (17:15 -0400)
committerBruno Abinader <bruno.abinader@openbossa.org>
Fri, 29 Oct 2010 21:20:54 +0000 (17:20 -0400)
commit4539f8530bb65a6a251d8582a2ddddb879da30a5
tree555a27983016a3707e4816eb72992e7aa6eec3cd
parent8dc6ec223ec1d4f01d6d3df4c76858d614c2be8b
NetworkCache: Not using const QString references between threads

This was causing a double-free error: thread A creates the object, then
passes it using a queued connection to thread B, which may use a invalid
reference if thread A removes the caller function from the stack
*before* the slot from thread B is executed.

Signed-off-by: Bruno Abinader <bruno.abinader@openbossa.org>
src/networkcache.cpp