[Libreoffice-bugs] [Bug 111561] IOHIDDeviceClass::setElementDictIntValue() leaks memory
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 9 15:47:13 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=111561
--- Comment #4 from Alex Thurgood <iplaw67 at tuta.io> ---
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;
}
}
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170809/b22e35d2/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list