Bugzilla – Bug 443444
gstreamer-0_10-plugins-bad-0.10.8-4.8: call to wrong C++ delete
Last modified: 2009-04-21 15:30:04 UTC
I just checked some of the source code in the Suse Linux factory package gstreamer-0_10-plugins-bad-0.10.8-4.8 and I noticed the following $ egrep "new|delete" ../BUILD/gst-plugins-bad-0.10.8/gst/modplug/libmodplug/load_mdl.cpp | fgrep m_lpszSongComments if (m_lpszSongComments) delete m_lpszSongComments; m_lpszSongComments = new char[blocklen]; The if test is a waste of time and the delete is wrong. Suggest replace line of code with delete [] m_lpszSongComments; m_lpszSongComments = NULL;
Created attachment 264603 [details] hal-smart-card.patch
OOPS, bad bug #.
This code is a part of libmodplug. This code was part of gst-plugins-bad-0.10, but now it depends on an external library, which is not part of openSUSE yet, It could be probably added to keep gst-plugins-bad features.
Reported upstream: https://sourceforge.net/tracker/?func=detail&aid=2777464&group_id=1275&atid=301275
New libmodplug package with the fix was submitted to openSUSE:Factory.