diff options
author | comex | 2015-07-11 14:46:36 -0400 |
---|---|---|
committer | comex | 2015-07-11 14:49:05 -0400 |
commit | 8af10299f6f60c5911c0c389589360069be28a35 (patch) | |
tree | b4585250723c1bae113b06a62ab920013e4e4f78 /darwin-bootstrap/substituted.m | |
parent | put back notifyd exclusion - still an issue :< (diff) | |
download | substitute-8af10299f6f60c5911c0c389589360069be28a35.tar.gz |
better fix
Diffstat (limited to 'darwin-bootstrap/substituted.m')
-rw-r--r-- | darwin-bootstrap/substituted.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/darwin-bootstrap/substituted.m b/darwin-bootstrap/substituted.m index 8e7af7c..28576ea 100644 --- a/darwin-bootstrap/substituted.m +++ b/darwin-bootstrap/substituted.m @@ -142,18 +142,18 @@ static enum convert_filters_ret convert_filters(NSDictionary *plist_dict, for (int i = 0; i < 2; i++) { NSArray *things = [filter objectForKey:types[i].key]; - xxpc_object_t out_things = xxpc_array_create(NULL, 0); if (things) { if (![things isKindOfClass:[NSArray class]]) return INVALID; + xxpc_object_t out_things = xxpc_array_create(NULL, 0); for (NSString *name in things) { if (![name isKindOfClass:[NSString class]]) return INVALID; xxpc_array_append_value(out_things, nsstring_to_xpc(name)); } xxpc_dictionary_set_value(out_info, types[i].okey, out_things); + xxpc_release(out_things); } - xxpc_release(out_things); } return PROVISIONAL_PASS; |