Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #610 from lioncash/delete
DolphinWX: Remove the need for an explicit new/delete in ISOProperties
  • Loading branch information
delroth committed Jul 13, 2014
2 parents 4d02675 + 5b64990 commit 5c701f6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Source/Core/DolphinWX/ISOProperties.cpp
Expand Up @@ -971,8 +971,7 @@ void CISOProperties::CheckPartitionIntegrity(wxCommandEvent& event)
int PartitionNum = wxAtoi(PartitionName.Mid(PartitionName.find_first_of("0123456789"), 1));
const WiiPartition& Partition = WiiDisc[PartitionNum];

wxProgressDialog* dialog = new wxProgressDialog(
_("Checking integrity..."), _("Working..."), 1000, this,
wxProgressDialog dialog(_("Checking integrity..."), _("Working..."), 1000, this,
wxPD_APP_MODAL | wxPD_ELAPSED_TIME | wxPD_SMOOTH
);

Expand All @@ -981,11 +980,11 @@ void CISOProperties::CheckPartitionIntegrity(wxCommandEvent& event)

while (thread.IsAlive())
{
dialog->Pulse();
dialog.Pulse();
wxThread::Sleep(50);
}

delete dialog;
dialog.Destroy();

if (!thread.Wait())
{
Expand Down

0 comments on commit 5c701f6

Please sign in to comment.