Initialise _firstLoadRequest to prevent jumps from depending on uninitialised memory.

When running Telegram under Valgrind, I found that there were jumps depending on the value
of _firstLoadRequest (in historywidget.cpp) before it was initialised.

Signed-off-by: Michael Sproul <micsproul@gmail.com> (github: michaelsproul)
This commit is contained in:
Michael Sproul 2015-11-15 11:50:57 +11:00
parent 785aeb7d7d
commit daf85854f1
1 changed files with 1 additions and 1 deletions

View File

@ -2357,7 +2357,7 @@ HistoryWidget::HistoryWidget(QWidget *parent) : TWidget(parent)
, _showAtMsgId(0)
, _fixedInScrollMsgId(0)
, _fixedInScrollMsgTop(0)
, _preloadRequest(0), _preloadDownRequest(0)
, _firstLoadRequest(0), _preloadRequest(0), _preloadDownRequest(0)
, _delayedShowAtMsgId(-1)
, _delayedShowAtRequest(0)
, _activeAnimMsgId(0)