KanikaVarma / sudzc

Automatically exported from code.google.com/p/sudzc
0 stars 0 forks source link

+newWithNode: methods return autoreleased object. Should return object with retain count of 1. #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate source code from a WSDL, using the "Objective-C for iOS" option.
2. Inspect the +newWithNode: methods of the generated object modules.
3. Notice that the returned object is autoreleased.
4. Recall that methods that begin with "new" are supposed to transfer 
ownership, or in other words, return a non-autoreleased object. See 
https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMg
mt/Articles/mmRules.html

What is the expected output? What do you see instead?
Expect not to see autorelease called on the returned object.

What version of the product are you using? On what operating system?
Latest as of writing of this bug. All OSes.

Please provide any additional information below.

Original issue reported on code.google.com by glen.sim...@gmail.com on 24 Apr 2012 at 6:19