Changeset 599


Ignore:
Timestamp:
Feb 24, 2010, 8:03:51 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib: Fixed crash in QVariantAnimation::registerInterpolator(): the function was called from the static destructor code at program termination, after the static destructor for registeredInterpolators() was called (the C++ standard doesn't define the order in which static objects in different compilation units are destroyed).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/animation/qvariantanimation.cpp

    r561 r599  
    220220    else
    221221        interpolator = 0;
    222    
     222
    223223    //we make sure that the interpolator is always set to something
    224224    if (!interpolator)
     
    249249                                                                      animationValueLessThan);
    250250        if (it == keyValues.constBegin()) {
    251             //the item pointed to by it is the start element in the range   
     251            //the item pointed to by it is the start element in the range
    252252            if (it->first == 0 && keyValues.count() > 1) {
    253253                currentInterval.start = *it;
     
    432432    // will override any existing interpolators
    433433    QInterpolatorVector *interpolators = registeredInterpolators();
     434
     435
     436
     437
    434438    QMutexLocker locker(QMutexPool::globalInstanceGet(interpolators));
    435439    if (int(interpolationType) >= interpolators->count())
Note: See TracChangeset for help on using the changeset viewer.