Fix Crash issue when removing picture in OGG 25/236025/6
authorhj kim <backto.kim@samsung.com>
Fri, 12 Jun 2020 05:23:01 +0000 (14:23 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 24 Jun 2020 08:55:36 +0000 (17:55 +0900)
commitbb01ea1064ca21af96af905ba5c999a8d74a4d2d
tree0d590d8458e1a0790c7bc5134cc222456aaf0403
parent4e0aceb3750dca31180200c377538768b739600c
Fix Crash issue when removing picture in OGG

XiphComment has removePicture() and it is used for OGG formats such as vorbis ogg or flac ogg.
When try to remove picture on those files we can use this method.
but when remove it with reference from the Picture_list[index], like a FLAC file, crash occurred.
(actually crash not occurred in this method, but after removing, if we try to access (eg. by using save() or getting picture)
the picture list which has more than 1 picture, crash occurred)
I don't know the reason why.
So anyway, modified it to use iterator.

Change-Id: I0dae724860ca3efab42d5e981b7f3fc5adf1d954
src/metadata_editor.cpp