Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This repository was archived by the owner on May 28, 2025. It is now read-only.

Apparent memory leak in _DWriteGetFrameSize #1766

Closed

Description

@jaredhms

This stack appears to be leaking a font name on every call:

COREFOUNDATION.DLL!CFAllocatorAllocate Line 609	Objective-C++
COREFOUNDATION.DLL!_CFRuntimeCreateInstance Line 404	Objective-C++
COREFOUNDATION.DLL!__CFStringCreateImmutableFunnel3 Line 1521	Objective-C++
COREFOUNDATION.DLL!CFStringCreateWithCharactersNoCopy Line 1612	Objective-C++
COREGRAPHICS.DLL!_CFStringFromLocalizedString Line 146	Objective-C++
COREGRAPHICS.DLL!_DWriteFontCopyInformationalString Line 325	Objective-C++
CORETEXT.DLL!_DWriteFontCopyName Line 344	Objective-C++
CORETEXT.DLL!__DWriteTextFormatCreate() Line 205	Objective-C++
CORETEXT.DLL!__DWriteTextLayoutCreate Line 237	Objective-C++
CORETEXT.DLL!_DWriteGetFrameSize Line 537	Objective-C++
CORETEXT.DLL!CTFramesetterSuggestFrameSizeWithConstraints Line 131	Objective-C++
UIKIT.DLL!-[NSString(UIKitAdditions) _sizeWithAttributes:constrainedToSize:] Line 266	Objective-C++

Identifier Count Size (Bytes) Count Diff. Size Diff (Bytes) Module

  • -[UIButton intrinsicContentSize] 12 168 +2 +28 UIKIT.DLL
    • -[NSString(UIKitAdditions) sizeWithFont:] 12 168 +2 +28 UIKIT.DLL
      • -[NSString(UIKitAdditions) sizeWithFont:constrainedToSize:] 12 168 +2 +28 UIKIT.DLL
        • -[NSString(UIKitAdditions) _sizeWithAttributes:constrainedToSize:] 12 168 +2 +28 UIKIT.DLL
          • CTFramesetterSuggestFrameSizeWithConstraints 12 168 +2 +28 CORETEXT.DLL
            • _DWriteGetFrameSize 12 168 +2 +28 CORETEXT.DLL
              • __DWriteTextLayoutCreate 12 168 +2 +28 CORETEXT.DLL
                • __DWriteTextLayoutApplyFont 12 168 +2 +28 CORETEXT.DLL
                  • _DWriteFontCopyName 12 168 +2 +28 CORETEXT.DLL
                    • _DWriteFontCopyInformationalString 12 168 +2 +28 COREGRAPHICS.DLL
                    • _CFStringFromLocalizedString 12 168 +2 +28 COREGRAPHICS.DLL
                      [External Code] 6 72 +1 +12 [External Code]
                    • CFStringCreateWithCharactersNoCopy 6 96 +1 +16 COREFOUNDATION.DLL
                    • __CFStringCreateImmutableFunnel3 6 96 +1 +16 COREFOUNDATION.DLL
                    • _CFRuntimeCreateInstance 6 96 +1 +16 COREFOUNDATION.DLL
                    • CFAllocatorAllocate 6 96 +1 +16 COREFOUNDATION.DLL
                    • __CFAllocatorSystemAllocate 6 96 +1 +16 COREFOUNDATION.DLL

Activity

  1. added a commit that references this issue on Jan 24, 2017
    aa8a8d4
  2. added a commit that references this issue on Feb 17, 2017
    ffe05fa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions