Skip to content

Commit

Permalink
fix updater autopool
Browse files Browse the repository at this point in the history
  • Loading branch information
jxy-s committed Jan 28, 2024
1 parent 147d2d7 commit 0ec84ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/Updater/updater.c
Original file line number Diff line number Diff line change
Expand Up @@ -1251,8 +1251,7 @@ VOID ShowStartupUpdateDialog(
PhIsNullOrEmptyString(context->SetupFileSignature) &&
PhIsNullOrEmptyString(context->CommitHash))
{
PhDereferenceObject(context);
return;
goto CleanupExit;
}

TASKDIALOGCONFIG config = { sizeof(TASKDIALOGCONFIG) };
Expand All @@ -1263,6 +1262,7 @@ VOID ShowStartupUpdateDialog(
config.pfCallback = TaskDialogBootstrapCallback;
TaskDialogIndirect(&config, NULL, NULL, NULL);

CleanupExit:
PhDereferenceObject(context);
PhDeleteAutoPool(&autoPool);
}

0 comments on commit 0ec84ee

Please sign in to comment.