Add Destructor to free new allocated resource in Ctor.
authorJamal Haidar <jamal.haidar@samsung.com>
Sat, 4 Jul 2015 11:59:23 +0000 (17:29 +0530)
committerErich Keane <erich.keane@intel.com>
Fri, 10 Jul 2015 19:14:25 +0000 (19:14 +0000)
commitb32ea9f30ec8d298cd2bf9863830f60cb17374dd
tree76c995d6963e040dc47e574f0a30c0075cab5453
parent31d384897fe9ac3366f101cb3f40db087de4b4a3
Add Destructor to free new allocated resource in Ctor.

~Middle() and ~RestInput() destrcutors added which deletes allocated
memory in Ctors.

Change-Id: I29823cde6c7b28325fde9b40f088f83994ebc6a5
Signed-off-by: Jamal Haidar <jamal.haidar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1522
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
examples/OICMiddle/OICMiddle.cpp
examples/OICMiddle/OICMiddle.h
examples/OICMiddle/RestInput.cpp
examples/OICMiddle/RestInput.h