<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - IOHIDDeviceClass::setElementDictIntValue() leaks memory"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111561#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - IOHIDDeviceClass::setElementDictIntValue() leaks memory"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111561">bug 111561</a>
              from <span class="vcard"><a class="email" href="mailto:iplaw67@tuta.io" title="Alex Thurgood <iplaw67@tuta.io>"> <span class="fn">Alex Thurgood</span></a>
</span></b>
        <pre>and here :

CFTypeRef IOHIDDeviceClass::createElement(CFDataRef data, IOHIDElementStruct *
element, uint32_t index, CFTypeRef parentElement, CFMutableDictionaryRef
elementCache, bool * isElementCached, IOOptionBits options)
{
    CFTypeRef   type = 0;
    CFNumberRef key = 0;
    uint32_t    cookie = element->cookieMin + index;

    if ( elementCache )
    {
        key = CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &cookie);

        if ( key )
        {
            type = CFDictionaryGetValue(elementCache, key);

            if ( type )
            {
                if (isElementCached)
                    *isElementCached = true;

                CFRetain(type);
                CFRelease(key);

                return type;
            }
        }
}</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>