KanikaVarma / sudzc

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

Release called on properties. #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate code for "Objective-C for iOS".
2. Inspect -dealloc methods of generated object modules.
3. Notice that -release is being called on properties.
4. Further notice that an unnecessary check for nil is being made before 
release.

What is the expected output? What do you see instead?
Properties should be set to nil in -dealloc. No prior check for nil should be 
made.
i.e.
self.foo = nil;
self.bar = nil;
[super dealloc];

What version of the product are you using? On what operating system?
Latest, 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:22

GoogleCodeExporter commented 9 years ago
Meant to add that this generates a lot of noise when the code is analyzed.

Original comment by glen.sim...@gmail.com on 24 Apr 2012 at 6:23