Descriptionui/base/models: Fix the API example code comment.
Allocating |root| on the stack and passing to |model|, also on the stack,
does _not_ work, because TreeNodeModel owns the root.
So when the dtor of TreeNodeModel is called, it attempts to free an invalid
pointer, which was already deleted.
BUG=None
TEST=None
R=sky@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89355
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|