Commit b1ca88e0 authored by A. Wilcox's avatar A. Wilcox

iUI: Duplicate item specific strings before sending to bridge.

I don't know exactly why this needs to be done, but it does to make release builds work.  And they do work now.
parent 4fb48ff4
......@@ -164,7 +164,7 @@ extern const char *site_names[3];
itemSpecificKeys = [[NSMutableArray alloc] init];
itemSpecificValues = [[NSMutableArray alloc] init];
photos = [[NSMutableArray alloc] init];
specifics = new WTDictionary(false);
specifics = new WTDictionary(true);
if(item != nil)
......@@ -1930,7 +1930,7 @@ extern const char *site_names[3];
for(NSUInteger next_specific = 0; next_specific < itemSpecificKeys.count; next_specific++)
specifics->set([[itemSpecificKeys objectAtIndex:next_specific] UTF8String], [[itemSpecificValues objectAtIndex:next_specific] UTF8String]);
specifics->set([[itemSpecificKeys objectAtIndex:next_specific] UTF8String], strdup([[itemSpecificValues objectAtIndex:next_specific] UTF8String]));
[changedKeys setObject:[NSValue valueWithPointer:specifics] forKey:kItemPropertySpecifics];
AuXBridge *bridge = [[AuXBridge alloc] initCall:AuVerifyAddItem
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment