]> git.saurik.com Git - apple/security.git/blobdiff - Keychain/SecRuntime.cpp
Security-176.tar.gz
[apple/security.git] / Keychain / SecRuntime.cpp
index a8c01a92fd56462d3c15840df8b92ecc229a53d5..8033967d02313329b409e552dc47d2091b55edd8 100644 (file)
@@ -52,7 +52,7 @@ SecCFObject::required(CFTypeRef cfTypeRef, OSStatus error)
 void *
 SecCFObject::allocate(size_t size, CFTypeID typeID) throw(std::bad_alloc)
 {
-       void *p = const_cast<void *>(_CFRuntimeCreateInstance(NULL, typeID,
+       void *p = const_cast<void *>(_CFRuntimeCreateInstance(gTypes().allocator, typeID,
                size + kAlignedRuntimeSize - sizeof(CFRuntimeBase), NULL));
        if (p == NULL)
                throw std::bad_alloc();