In case of removing songs from a playlist, song list are not shown properly.
It is because previous information was not deleted so previous list data was appended.
Modified to delete previous information.
Change-Id: If77de773b6fb71c56cfa7906394b29ca0739f68e
Signed-off-by: Kim Tae Soo <taesoo46.kim@samsung.com>
return;
}
- if (!t.c_catinfo)
- t.c_catinfo = new CCategoryInfo;
-
- if (!t.c_catinfo->FlagCreate())
- t.c_catinfo->Create();
+ if (t.c_catinfo && t.c_catinfo->FlagCreate())
+ t.c_catinfo->Destroy();
+ t.c_catinfo->Create();
t.c_catinfo->Duplicate(catinfo);
switch (type) {