diff options
Diffstat (limited to 'storage/mozStorageService.cpp')
-rw-r--r-- | storage/mozStorageService.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/storage/mozStorageService.cpp b/storage/mozStorageService.cpp index 8c6f65232c..04be1f8733 100644 --- a/storage/mozStorageService.cpp +++ b/storage/mozStorageService.cpp @@ -27,7 +27,7 @@ #include "sqlite3.h" -#ifdef SQLITE_OS_WIN +#ifdef XP_WIN // "windows.h" was included and it can #define lots of things we care about... #undef CompareString #endif @@ -917,6 +917,12 @@ Service::Observe(nsISupports *, const char *aTopic, const char16_t *) getConnections(connections); for (uint32_t i = 0, n = connections.Length(); i < n; i++) { if (!connections[i]->isClosed()) { +#ifdef DEBUG + nsCString msg; + msg.AppendPrintf("Storage connection to '%s' was not closed.", + connections[i]->getFilename().get()); + NS_ERROR(msg.get()); +#endif MOZ_CRASH(); } } |