mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user