• Honglei Zhang's avatar
    Fix sqlite driver memory eating due to close failure · d34170af
    Honglei Zhang authored
    
    If an ongoing query is not finalized before close function is
    called, sqlite driver still tries to close the connection to
    sqlite. In this case, sqlite reports an error to sqlite driver
    which is not reported to the client. The failure in close causes
    connection to sqlite unclosed and memory is not freed. This
    fix tries to finalize all queries before close function is called.
    The close function should succeed.
    
    Task-number: QTBUG-16967
    Change-Id: I2f10a2a9017446a9d44b693b00464a89625e3602
    Reviewed-by: default avatarYunqiao Yin <charles.yin@nokia.com>
    d34170af