Skip to content

Commit

Permalink
Set the pointer to 0 after delete
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Dec 3, 2020
1 parent 2cf207f commit fc3279e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions OMEdit/OMEditLIB/Debugger/GDB/GDBAdapter.cpp
Expand Up @@ -270,6 +270,7 @@ void GDBAdapter::create()
void GDBAdapter::destroy()
{
mpInstance->deleteLater();
mpInstance = 0;
}

/*!
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditLIB/Git/GitCommands.cpp
Expand Up @@ -32,6 +32,7 @@ void GitCommands::create()
void GitCommands::destroy()
{
mpInstance->deleteLater();
mpInstance = 0;
}

/*!
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditLIB/Modeling/MessagesWidget.cpp
Expand Up @@ -395,6 +395,7 @@ void MessagesWidget::create()
void MessagesWidget::destroy()
{
mpInstance->deleteLater();
mpInstance = 0;
}

/*!
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditLIB/OMS/OMSProxy.cpp
Expand Up @@ -110,6 +110,7 @@ void OMSProxy::destroy()
{
oms_setLoggingCallback(0);
mpInstance->deleteLater();
mpInstance = 0;
}

/*!
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditLIB/Options/OptionsDialog.cpp
Expand Up @@ -70,6 +70,7 @@ void OptionsDialog::create()
void OptionsDialog::destroy()
{
mpInstance->deleteLater();
mpInstance = 0;
}

/*!
Expand Down

0 comments on commit fc3279e

Please sign in to comment.