mirror of https://github.com/procxx/kepka.git
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:
parent
785aeb7d7d
commit
daf85854f1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue