Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(widget): Add friendWidget deletation
Browse files Browse the repository at this point in the history
Thanks @noavarice for help.
Fix #4254, #4229
  • Loading branch information
Diadlo committed Mar 20, 2017
1 parent f0cec44 commit c7202c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,7 @@ void Widget::removeFriend(Friend* f, bool fake)
FriendList::removeFriend(f->getFriendId(), fake);
Nexus::getCore()->removeFriend(f->getFriendId(), fake);

delete widget;
delete f;
if (contentLayout && contentLayout->mainHead->layout()->isEmpty()) {
onAddClicked();
Expand Down

0 comments on commit c7202c8

Please sign in to comment.