From: <ah...@us...> - 2006-08-29 16:57:40
|
Revision: 10921 Author: ahuser Date: 2006-08-29 09:57:31 -0700 (Tue, 29 Aug 2006) ViewCVS: http://svn.sourceforge.net/jvcl/?rev=10921&view=rev Log Message: ----------- Fixed Mantis #3876: Resource leak in TJvMainMenu and TJvPopupMenu (Mantis #3876) Modified Paths: -------------- trunk/jvcl/run/JvMenus.pas Modified: trunk/jvcl/run/JvMenus.pas =================================================================== --- trunk/jvcl/run/JvMenus.pas 2006-08-28 14:38:46 UTC (rev 10920) +++ trunk/jvcl/run/JvMenus.pas 2006-08-29 16:57:31 UTC (rev 10921) @@ -1295,7 +1295,7 @@ Canvas.Free; end; finally - ReleaseDC(DC, 0); + ReleaseDC(0, DC); end; end; end; @@ -1897,7 +1897,7 @@ Canvas.Free; end; finally - ReleaseDC(DC, 0); + ReleaseDC(0, DC); end; end; end; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |