From d27e3100538b06b1dd4c83d885c1e2b71ff468c4 Mon Sep 17 00:00:00 2001 From: "flamingice@sourmilk.net" Date: Tue, 24 Jul 2007 19:18:54 -0700 Subject: [PATCH] Bug 386179, Stop using sqlite3ApiExit, r=sdwilsh --- db/sqlite3/src/sqlite.def | 1 - db/sqlite3/src/sqlite3file.h | 1 - storage/src/mozStorageAsyncIO.cpp | 3 --- 3 files changed, 5 deletions(-) diff --git a/db/sqlite3/src/sqlite.def b/db/sqlite3/src/sqlite.def index dcf2ce502a5c..5e1179e096f4 100644 --- a/db/sqlite3/src/sqlite.def +++ b/db/sqlite3/src/sqlite.def @@ -155,5 +155,4 @@ EXPORTS sqlite3_aggregate_context sqlite3_value_type sqlite3_version sqlite3_vmprintf - sqlite3ApiExit ;needed by mozStorage sqlite3Os DATA ;needed by mozStorage diff --git a/db/sqlite3/src/sqlite3file.h b/db/sqlite3/src/sqlite3file.h index 67e665876205..547143877487 100644 --- a/db/sqlite3/src/sqlite3file.h +++ b/db/sqlite3/src/sqlite3file.h @@ -72,7 +72,6 @@ struct ThreadData; ** See definition in util.c */ struct sqlite3; -int sqlite3ApiExit(sqlite3 *db, int); /* diff --git a/storage/src/mozStorageAsyncIO.cpp b/storage/src/mozStorageAsyncIO.cpp index 6ba79016a52f..dd49f091005f 100644 --- a/storage/src/mozStorageAsyncIO.cpp +++ b/storage/src/mozStorageAsyncIO.cpp @@ -1571,9 +1571,6 @@ ProcessAsyncMessages() AsyncQueueLast = nsnull; AsyncQueueFirst = message->mNext; nsMemory::Free(message); - - // free any out-of-memory flags in the library - sqlite3ApiExit(nsnull, 0); } // Drop the queue mutex before continuing to the next write operation // in order to give other threads a chance to work with the write queue