mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-20 22:05:06 +00:00
rpcn: Fix segfault in rpcn_settings_dialog destructor
This will happen if m_rpcn failed to connect in the constructor.
This commit is contained in:
parent
c7a576edce
commit
8afa40eaa7
1 changed files with 4 additions and 1 deletions
|
|
@ -1347,7 +1347,10 @@ rpcn_friends_dialog::rpcn_friends_dialog(QWidget* parent)
|
|||
|
||||
rpcn_friends_dialog::~rpcn_friends_dialog()
|
||||
{
|
||||
m_rpcn->remove_friend_cb(friend_callback, this);
|
||||
if (m_rpcn)
|
||||
{
|
||||
m_rpcn->remove_friend_cb(friend_callback, this);
|
||||
}
|
||||
}
|
||||
|
||||
bool rpcn_friends_dialog::add_friend_with_error_dialog(const std::string& friend_username)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue