Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some memory leaks #287

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/big_widgets/ConfigWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ConfigWidget::ConfigWidget(const QSharedPointer<GitBase> &git, QWidget *parent)
: QWidget(parent)
, ui(new Ui::ConfigWidget)
, mGit(git)
, mFeedbackTimer(new QTimer())
, mFeedbackTimer(new QTimer(this))
, mSave(new QPushButton(this))
, mPluginsDownloader(new PluginsDownloader(this))
, mDownloadButtons(new QButtonGroup(this))
Expand Down
4 changes: 2 additions & 2 deletions src/branches/BranchesWidgetMinimal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void BranchesWidgetMinimal::configureTagsMenu(const QString &sha, const QString

void BranchesWidgetMinimal::configureStashesMenu(const QString &stashId, const QString &name)
{
const auto action = new QAction(name);
const auto action = new QAction(name, mStashesMenu);
action->setData(stashId);
connect(action, &QAction::triggered, this, [this, stashId] { emit stashSelected(stashId); });

Expand All @@ -154,7 +154,7 @@ void BranchesWidgetMinimal::configureStashesMenu(const QString &stashId, const Q

void BranchesWidgetMinimal::configureSubmodulesMenu(const QString &name)
{
const auto action = new QAction(name);
const auto action = new QAction(name, mSubmodulesMenu);
action->setData(name);
mSubmodulesMenu->addAction(action);
mSubmodules->setText(" " + QString::number(mSubmodulesMenu->actions().count()));
Expand Down