Fixed Valgrind warnings
Running cockatrice in valgrind i didn't found any bad memory leak (good!), but only a few jumps depending on uninitialized variables. Even if the possibility of crashes are remote, it's nice to sort them out.
This commit is contained in:
parent
8b32a1010a
commit
1da2e7154c
5 changed files with 5 additions and 3 deletions
|
@ -93,6 +93,7 @@ GamesProxyModel::GamesProxyModel(QObject *parent, ServerInfo_User *_ownUser)
|
||||||
: QSortFilterProxyModel(parent),
|
: QSortFilterProxyModel(parent),
|
||||||
ownUser(_ownUser),
|
ownUser(_ownUser),
|
||||||
unavailableGamesVisible(false),
|
unavailableGamesVisible(false),
|
||||||
|
passwordProtectedGamesVisible(false),
|
||||||
maxPlayersFilterMin(-1),
|
maxPlayersFilterMin(-1),
|
||||||
maxPlayersFilterMax(-1)
|
maxPlayersFilterMax(-1)
|
||||||
{
|
{
|
||||||
|
|
|
@ -876,6 +876,6 @@ void MessageLogWidget::connectToPlayer(Player *player)
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageLogWidget::MessageLogWidget(const TabSupervisor *_tabSupervisor, TabGame *_game, QWidget *parent)
|
MessageLogWidget::MessageLogWidget(const TabSupervisor *_tabSupervisor, TabGame *_game, QWidget *parent)
|
||||||
: ChatView(_tabSupervisor, _game, false, parent)
|
: ChatView(_tabSupervisor, _game, false, parent), currentContext(MessageContext_None)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,7 +100,7 @@ void PhaseButton::triggerDoubleClickAction()
|
||||||
}
|
}
|
||||||
|
|
||||||
PhasesToolbar::PhasesToolbar(QGraphicsItem *parent)
|
PhasesToolbar::PhasesToolbar(QGraphicsItem *parent)
|
||||||
: QGraphicsItem(parent), width(100), height(100)
|
: QGraphicsItem(parent), width(100), height(100), ySpacing(1), symbolSize(8)
|
||||||
{
|
{
|
||||||
QAction *aUntapAll = new QAction(this);
|
QAction *aUntapAll = new QAction(this);
|
||||||
connect(aUntapAll, SIGNAL(triggered()), this, SLOT(actUntapAll()));
|
connect(aUntapAll, SIGNAL(triggered()), this, SLOT(actUntapAll()));
|
||||||
|
|
|
@ -236,6 +236,7 @@ void DeckViewContainer::setDeck(const DeckLoader &deck)
|
||||||
|
|
||||||
TabGame::TabGame(TabSupervisor *_tabSupervisor, GameReplay *_replay)
|
TabGame::TabGame(TabSupervisor *_tabSupervisor, GameReplay *_replay)
|
||||||
: Tab(_tabSupervisor),
|
: Tab(_tabSupervisor),
|
||||||
|
secondsElapsed(0),
|
||||||
hostId(-1),
|
hostId(-1),
|
||||||
localPlayerId(-1),
|
localPlayerId(-1),
|
||||||
spectator(true),
|
spectator(true),
|
||||||
|
|
|
@ -15,7 +15,7 @@ GameEventStorageItem::~GameEventStorageItem()
|
||||||
}
|
}
|
||||||
|
|
||||||
GameEventStorage::GameEventStorage()
|
GameEventStorage::GameEventStorage()
|
||||||
: gameEventContext(0)
|
: gameEventContext(0), privatePlayerId(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue