fix valgrind check

This commit is contained in:
Arvid Norberg 2014-01-25 01:53:33 +00:00
parent 8cfbb8a243
commit 2ac9c30dc9
1 changed files with 6 additions and 1 deletions

View File

@ -212,7 +212,12 @@ namespace libtorrent
}
#ifdef TORRENT_USE_VALGRIND
VALGRIND_CHECK_VALUE_IS_DEFINED(ret);
VALGRIND_CHECK_VALUE_IS_DEFINED(ret.info);
VALGRIND_CHECK_VALUE_IS_DEFINED(ret.index);
VALGRIND_CHECK_VALUE_IS_DEFINED(ret.finished);
VALGRIND_CHECK_VALUE_IS_DEFINED(ret.writing);
VALGRIND_CHECK_VALUE_IS_DEFINED(ret.requested);
VALGRIND_CHECK_VALUE_IS_DEFINED(ret.sate);
#endif
i = m_downloads.insert(i, ret);
return *i;