Skip to content

Commit

Permalink
Merge pull request #39 from AlexChernov/bug/segfault
Browse files Browse the repository at this point in the history
Проверка указателя g_pApp в pluginStopAction() #38
  • Loading branch information
AlexChernov committed Sep 7, 2015
2 parents 8dc91f1 + 5486321 commit 0ec331d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/rdo_studio/plugins/game5/src/plugin_game5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void PluginGame5::pluginStopAction(QWidget* pParent)
if (pluginGame5ToolBar)
delete pluginGame5ToolBar;

if (g_pApp->getMainWndUI())
if (g_pApp && g_pApp->getMainWndUI())
{
rdo::gui::model::Model* pModel = g_pApp->getMainWndUI()->getModel();
if (pModel)
Expand Down

0 comments on commit 0ec331d

Please sign in to comment.