Hit a crash on Windows when using the Music Library to change the
year on a album. Tracked it down to a null _field_bitset in frame_impl.cpp.
These changes prevent the crash by always initializing _field_bitset.
- Steve
[EMAIL PROTECTED]
www.speechstudio.com
RCS file: /src/repository/freeamp/plm/metadata/id3v2/frame_impl.cpp,v
retrieving revision 1.2
diff -r1.2 frame_impl.cpp
41a42,43
> this->_InitFieldBits();
> this->_InitFields();
54d55
< this->_InitFields();
55a57
> this->_InitFields();
65d66
< this->_InitFieldBits();
66a68,72
> if(_field_bitset == NULL)
> {
> this->_InitFieldBits();
> this->_InitFields();
> }
98c104,107
< _field_bitset[i] = 0;
---
> if(_field_bitset)
> {
> _field_bitset[i] = 0;
> }
_______________________________________________
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/freeamp-dev