highfestiva/three20 — comment on commit b7cea66dbfa5b341b0af14838a5a5eef6d479368
File: src/Three20UI/Sources/TTTableView.m line 261
By tonklon:

shouldn't it be enough to switch the both lines?

`_originShadow` is removed from superlayer, and if superlayer was the last one holding onto `_originShadow` is is released.

And I would expect, that `insertSublayer:atIndex:` would implicitly remove the inserted layer from it's current superlayer, but found no docs that support that. In that case the `removeFromSuperlayer` message could be removed completely given `self.layer` is guaranteed to be non nil.