From daf85854f1d17b2792bf1269fdaa48d43361c263 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Sun, 15 Nov 2015 11:50:57 +1100 Subject: [PATCH] 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 (github: michaelsproul) --- Telegram/SourceFiles/historywidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/historywidget.cpp b/Telegram/SourceFiles/historywidget.cpp index 4398f133a..6fc73d7db 100644 --- a/Telegram/SourceFiles/historywidget.cpp +++ b/Telegram/SourceFiles/historywidget.cpp @@ -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)