Update of /cvsroot/myoledb/myoledb3
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32388
Modified Files:
mysql.cpp mysqlmeta.cpp
Log Message:
When deleting members, make sure they are set to NULL, so if shutdown happens twice there's no crash
Index: mysqlmeta.cpp
===================================================================
RCS file: /cvsroot/myoledb/myoledb3/mysqlmeta.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- mysqlmeta.cpp 24 Nov 2005 13:54:01 -0000 1.7
+++ mysqlmeta.cpp 1 Feb 2006 07:36:17 -0000 1.8
@@ -56,6 +56,7 @@
}
free( m_pFiles );
+ m_pFiles = NULL;
}
if( m_pRelations != NULL )
@@ -68,6 +69,7 @@
}
free( m_pRelations );
+ m_pRelations = NULL;
}
free( m_pFields );
Index: mysql.cpp
===================================================================
RCS file: /cvsroot/myoledb/myoledb3/mysql.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- mysql.cpp 13 Jan 2006 09:12:15 -0000 1.32
+++ mysql.cpp 1 Feb 2006 07:36:17 -0000 1.33
@@ -1913,7 +1913,7 @@
// 6d) Execute the statement
int numRowsAffected;
- if (mysql_stmt_execute(m_hstmt))
+ if (mysql_stmt_execute(m_hstmt))
{
// TODO: work out what the right error to give here is
mysql_stmt_close(m_hstmt);
|