title: Sqlite crash app
body: <p>i am using this code to insert names to table,i have a problem that after 150 +/- names the app crash with this log:</p>
  
  <pre><code> Received memory warning. Level=1
   Received memory warning. Level=2
  </code></pre>
  
  <p>this is the code,did i done something wrong?</p>
  
  <pre><code>if (sqlite3_open([dataPath UTF8String], &amp;database) == SQLITE_OK) {
      for (int i = 0 ; i &lt; count; i++) {          
          sqlite3_stmt *insertStmt = nil;
          NSString *name = [song valueForProperty:MPMediaItemPropertyTitle];
  
          if(insertStmt == nil) 
          {
              NSString *statement = [NSString stringWithFormat:@"INSERT INTO Songs (name) VALUES (?)"];
              const char *insertSql = [statement UTF8String];
  
              if(sqlite3_prepare_v2(database, insertSql, -1, &amp;insertStmt, NULL) != SQLITE_OK){
                  NSLog(@"Error while creating insert statement.");
                  insertStmt = nil;
                  continue;
              }
  
              sqlite3_bind_text(insertStmt, 1, [name UTF8String], -1, SQLITE_TRANSIENT);
  
  
              if(SQLITE_DONE != sqlite3_step(insertStmt)){
                  NSLog(@"Error while inserting data.");
                  insertStmt = nil;
                  continue;
              }
              else{}
  
              sqlite3_reset(insertStmt);
              insertStmt = nil;
          }
  
          [delegate IPodLibraryFinishEntity:self];
      }
  
      sqlite3_close(database);
  </code></pre>
  
  <p>}</p>