From: Mikko Rasa Date: Wed, 7 May 2014 20:26:13 +0000 (+0300) Subject: Avoid segfault if an exception is thrown while loading X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=02c12263ac40289afc626156358ebb705ed84a5b;hp=02c12263ac40289afc626156358ebb705ed84a5b;p=r2c2.git Avoid segfault if an exception is thrown while loading The Layout::add functions are called from object constructors. If an exception is thrown inside them, the constructor will abort and the object will be deleted. If that happens, it must be removed from the Layout as well, or an invalid memory access will occur later. ---