From 0ec84eee28c0f3dbf110ae821cb57da38690b3c7 Mon Sep 17 00:00:00 2001 From: Johnny Shaw Date: Sun, 28 Jan 2024 11:25:56 -0700 Subject: [PATCH] fix updater autopool --- plugins/Updater/updater.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Updater/updater.c b/plugins/Updater/updater.c index c0c5438fee7a..2d091dd99494 100644 --- a/plugins/Updater/updater.c +++ b/plugins/Updater/updater.c @@ -1251,8 +1251,7 @@ VOID ShowStartupUpdateDialog( PhIsNullOrEmptyString(context->SetupFileSignature) && PhIsNullOrEmptyString(context->CommitHash)) { - PhDereferenceObject(context); - return; + goto CleanupExit; } TASKDIALOGCONFIG config = { sizeof(TASKDIALOGCONFIG) }; @@ -1263,6 +1262,7 @@ VOID ShowStartupUpdateDialog( config.pfCallback = TaskDialogBootstrapCallback; TaskDialogIndirect(&config, NULL, NULL, NULL); +CleanupExit: PhDereferenceObject(context); PhDeleteAutoPool(&autoPool); }