[3.0] Fix leaking ResourceRequest reported by Valgrind
[platform/core/uifw/dali-core.git] / dali / integration-api / resource-request.h
index 6690c64..21bfca8 100644 (file)
@@ -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;