commit a580a03e27429d1b2e9ec5ea544361438a163dd8
Author: Christophe Fergeau <[email protected]>
Date: Tue Jul 19 20:44:53 2011 +0200
sqlite: don't leak 'composer' statement
The sqlite3 statetement stmt_composer in mk_Library was never
finalized, which prevented closing of the sqlite DB, and caused
a resource leak.
Bug diagnosed by wuda_ <[email protected]>
src/itdb_sqlite.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/itdb_sqlite.c b/src/itdb_sqlite.c
index 4b64710..b5b2975 100644
--- a/src/itdb_sqlite.c
+++ b/src/itdb_sqlite.c
@@ -1359,6 +1359,9 @@ leave:
if (stmt_artist) {
sqlite3_finalize(stmt_artist);
}
+ if (stmt_composer) {
+ sqlite3_finalize(stmt_composer);
+ }
if (stmt_video_info) {
sqlite3_finalize(stmt_video_info);
}
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide. Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2