From f02762bc3a7f75d02d2b33b29663b693e56474a9 Mon Sep 17 00:00:00 2001 From: Nick Holland Date: Wed, 15 Mar 2017 14:01:43 +0000 Subject: [PATCH] [3.0] Fix leaking ResourceRequest reported by Valgrind Memory leak caused by ResourceRequest copy constructor not deleting existing memory. Change-Id: I2fec473a6ca5aad803f20d7bfd8190ae6b7111dd --- dali/integration-api/resource-request.h | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.7.4