summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index 7d5e8ba3..03ae5658 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -955,8 +955,9 @@ void
 InputBar::toggleIgnore(const QString &user, const bool ignored)
 {
     UserProfile *profile = new UserProfile(QString(), user, TimelineViewManager::instance());
-    connect(profile, &UserProfile::failedToFetchProfile, [user] {
+    connect(profile, &UserProfile::failedToFetchProfile, [user, profile] {
         MainWindow::instance()->showNotification(tr("Failed to fetch user %1").arg(user));
+        profile->deleteLater();
     });
 
     connect(