[locomotiv] Session frees node annotations on destruction (#3441)
author박천교/On-Device Lab(SR)/Engineer/삼성전자 <ch.bahk@samsung.com>
Mon, 13 May 2019 07:46:07 +0000 (16:46 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 13 May 2019 07:46:07 +0000 (16:46 +0900)
commit4973695c2ac1ac0ccf624cdbb2e45aabc3593565
tree3a268b6157d10a6767df204075c2d390172b6347
parent57d7f6ef8bf256d2a5013a2a3f7b14bf9483728a
[locomotiv] Session frees node annotations on destruction (#3441)

* [locomotiv] Session frees node annotations on destruction

This commit introduces destructor of Session. Previously node
annotations set by Session, like NodeDataImpl, remain even after
Session closed. They were not memory leak by definition, as they can
be accessed through another Session. However node annotations maybe
preserved until program ends, so it is like memory leak. This commit
would prevent that situation.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Delete unused using Index

* Session is final class
contrib/locomotiv/include/locomotiv/Session.h
contrib/locomotiv/src/Session.cpp
contrib/locomotiv/src/Session.internal.test.cpp [new file with mode: 0644]