wahjam/wahjam — pull request #80 by stefanha (2013-01-12 08:54:39+00:00)
Title: Move NJClient::Disconnect() m_downloads.Empty()

Clearing m_downloads requires first deleting each RemoteDownload and
then emptying the list itself. Make these two steps adjacent in the
source code to eliminate the risk of accessing a freed RemoteDownload
before m_downloads.Empty() is called.

Signed-off-by: Stefan Hajnoczi