Bugzilla – Bug 515024
kradio-1.0beta3b_20060920-226.5: 2 * bad call to delete
Last modified: 2009-06-22 18:07:31 UTC
I just had a look at factory package kradio-1.0beta3b_20060920-226.5 In file kradio3/plugins/recording/encoder_ogg.cpp, around line 125 is the code static void vorbis_comment_add_tag_new(vorbis_comment *vc, const QString &tag, const QString &value) { char *stag = strdup(tag.ascii()); char *svalue = strdup(value.utf8()); vorbis_comment_add_tag(vc, stag, svalue); delete stag; delete svalue; } The return value from strdup should be freed by calling free(), not by calling delete. Suggest code rework.
http://kradio.sourceforge.net/ *** This bug has been marked as a duplicate of bug 442933 ***
Hi all! This bug is fixed in the trunk of the KRadio SVN (r949). It will be part of KRadio 4.0.1. However, 4.0.1 will need a bit more time for testing and bug fixing since the ALSA device selection has been reworked and because I'm currently quite busy with other stuff. Please have a look at https://bugzilla.novell.com/show_bug.cgi?id=500021. BR, Martin