diff --git a/2.x/trunk/ProcessHacker/mainwnd.c b/2.x/trunk/ProcessHacker/mainwnd.c index d7f6b906f..3505ee504 100644 --- a/2.x/trunk/ProcessHacker/mainwnd.c +++ b/2.x/trunk/ProcessHacker/mainwnd.c @@ -2539,7 +2539,6 @@ VOID PhpShowIconContextMenu( Location.x, Location.y ); - PhDestroyEMenu(menu); // Destroy the bitmaps. for (i = 0; i < numberOfProcesses; i++) @@ -2674,6 +2673,8 @@ VOID PhpShowIconContextMenu( } } } + + PhDestroyEMenu(menu); } VOID PhShowIconNotification(