Fix assertion about not clearing DataCommands objects 63/32763/2
authorSebastian Grabowski <s.grabowski@samsung.com>
Tue, 23 Dec 2014 14:39:17 +0000 (15:39 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 22 Jan 2015 16:05:41 +0000 (08:05 -0800)
commitbe8089f0bea232d3261d1ed95ad7a0b8923eb267
tree64be71c30791f09dd1dd35075e7927f0e79e5cdd
parentbc184e7c0689b26e0c62d36d3cb701cce6236876
Fix assertion about not clearing DataCommands objects

The following assertion occurs during exiting security-manager
when any command was executed on security-manager db:
"Condition: m_dataCommandsCount == 0 All stored procedures must be
deleted before disconnecting SqlConnection"
It was caused by not clearing list of DataCommands before destroying db
SqlConnection.

Change-Id: If2151dfc38df23ce9af00a47ac0d7939c13adaa1
Signed-off-by: Sebastian Grabowski <s.grabowski@samsung.com>
src/common/privilege_db.cpp