Hello,

Avl_node_base::remove function removes itself from the Avl_tree and leaves
the _parent and _child[] variables as they are.
Since someone could try to remove the same Avl_node_base twice by mistake,
it results in the crash of Avl_tree datastructure.
So, how about setting _parent and _child[] to NULL at Avl_node_base::remove
and, at the entry of the remove function, if someone tries to remove twice,
we could warn him.

Best regards,
Jaeyong
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Genode-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/genode-main

Reply via email to