From: Nick Holland Date: Wed, 15 Mar 2017 14:01:43 +0000 (+0000) Subject: [3.0] Fix leaking ResourceRequest reported by Valgrind X-Git-Tag: accepted/tizen/3.0/common/20170323.155250~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F119125%2F1;p=platform%2Fcore%2Fuifw%2Fdali-core.git [3.0] Fix leaking ResourceRequest reported by Valgrind Memory leak caused by ResourceRequest copy constructor not deleting existing memory. Change-Id: I2fec473a6ca5aad803f20d7bfd8190ae6b7111dd --- diff --git a/dali/integration-api/resource-request.h b/dali/integration-api/resource-request.h index 6690c64..21bfca8 100644 --- a/dali/integration-api/resource-request.h +++ b/dali/integration-api/resource-request.h @@ -123,6 +123,10 @@ public: if( this != &rhs ) { id = rhs.id; + if( type ) + { + delete type; + } type = rhs.type->Clone(); path = rhs.path; resource = rhs.resource;