diff --git a/storage/src/mozStorageStatement.cpp b/storage/src/mozStorageStatement.cpp index 8d23f9b6939f..ad9d652d9a4b 100644 --- a/storage/src/mozStorageStatement.cpp +++ b/storage/src/mozStorageStatement.cpp @@ -401,19 +401,27 @@ Statement::internalFinalize(bool aDestructing) // char *msg = ::PR_smprintf("SQL statement (%x) should have been finalized" - "before garbage-collection. For more details on this statement, set" - "NSPR_LOG_MESSAGES=mozStorage:5 .", + " before garbage-collection. For more details on this statement, set" + " NSPR_LOG_MESSAGES=mozStorage:5 .", mDBStatement); + // // Note that we can't display the statement itself, as the data structure // is not valid anymore. However, the address shown here should help // developers correlate with the more complete debug message triggered // by AsyncClose(). // + +#if 0 + // Deactivate the warning until we have fixed the exising culprit + // (see bug 914070). NS_WARNING(msg); +#endif // 0 + + PR_LOG(gStorageLog, PR_LOG_WARNING, msg); + ::PR_smprintf_free(msg); } -#endif // DEBUG mDBStatement = nullptr;