[Tizen.Core] Fix memory leak (#6336)
authorhjhun <36876573+hjhun@users.noreply.github.com>
Fri, 20 Sep 2024 04:04:19 +0000 (13:04 +0900)
committerGitHub <noreply@github.com>
Fri, 20 Sep 2024 04:04:19 +0000 (13:04 +0900)
commit5f37868832049c37dbb1db83ef9571582f665bb5
tree2b46ceba522e80f2601b7884301c4b46980ba14c
parentc7852911c0a6512969f40848956477b5bac70b8e
[Tizen.Core] Fix memory leak (#6336)

The problem is that if the setter of ChannelObject's Data Property is called
twice in a row, the previous data will not be removed. To prevent this,
this patch is made it so that when the setter is called, the previous data
is erased.

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/Tizen.Core/Tizen.Core/ChannelObject.cs