Skip to content

Commit

Permalink
Memory cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stevestreza committed Jul 26, 2011
1 parent 134a5c8 commit 508a30f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions XPCKit/NSArray+XPCParse.m
Expand Up @@ -40,6 +40,7 @@ -(xpc_object_t)newXPCObject{
if([value respondsToSelector:@selector(newXPCObject)]){
xpc_object_t xpcValue = [value newXPCObject];
xpc_array_set_value(array, XPC_ARRAY_APPEND, xpcValue);
xpc_release(xpcValue);
}
}];
return array;
Expand Down
1 change: 1 addition & 0 deletions XPCKit/NSDictionary+XPCParse.m
Expand Up @@ -42,6 +42,7 @@ -(xpc_object_t)newXPCObject{
if([value respondsToSelector:@selector(newXPCObject)]){
xpc_object_t xpcValue = [value newXPCObject];
xpc_dictionary_set_value(dictionary, [key cStringUsingEncoding:NSUTF8StringEncoding], xpcValue);
xpc_release(xpcValue);
// }else{
// NSLog(@"Error parsing %@: Cannot handle %@ data", key, [value class]);
}
Expand Down

0 comments on commit 508a30f

Please sign in to comment.