Home Dashboard Directory Help
Search

CMFCFontComboBox memory leak after DeleteString by Adam Badura


Status: 

Closed
 as Fixed Help for as Fixed


2
0
Sign in
to vote
Type: Bug
ID: 709116
Opened: 11/28/2011 5:04:37 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

Documentation for CMFCFontComboBox does not forbid use of DeleteString to delete items corresponding to unwanted fonts.

However doing so results in a leak as each item has associated data that is not deleted in that case. Since CMFCFontComboBox already is a sub-class it is easy to handle DeleteString properly.

See also http://social.msdn.microsoft.com/Forums/en/vcmfcatl/thread/b7f213d9-403b-456e-ad55-bbbeb342b5d8.
Details
Sign in to post a comment.
Posted by Microsoft on 12/5/2011 at 11:02 AM
Hello Adam,

Thanks for the report. This issue has been fixed in MFC for the next major release of Visual Studio.

Pat Brenner
Visual C++ Libraries Development
Posted by MS-Moderator10 [Feedback Moderator] on 11/28/2011 at 9:21 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 11/28/2011 at 5:41 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.