Eo: fix error handling when too many deletions invocations occur.
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Fri, 5 Dec 2014 01:19:47 +0000 (03:19 +0200)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Fri, 5 Dec 2014 01:38:16 +0000 (03:38 +0200)
commitbcd7736914b5a7f78a5dc19330b738dc8e94f518
treef33ac44ae6de61a70ecf2483435f893ce7034798
parente62dfdd79ee964a8c6617342831b1fd022e8a3bf
Eo: fix error handling when too many deletions invocations occur.

Before this fix, when a deletion was invoked twice on an object, a
wrong message ("...You wrongly call eo_unref() within a destructor...")
was printed. This was caused by the del_triggered flag that was not
resetted when the destruction finished.

This patch fixes this behavior by printing the right message on a double
deletion.
src/lib/eo/eo_private.h
src/tests/eo/suite/eo_test_class_behaviour_errors.c