Skip to content

Commit

Permalink
Fix dispose error for TMongoCursor.Destroy()
Browse files Browse the repository at this point in the history
  • Loading branch information
gerald-lindsly committed Mar 7, 2013
1 parent 76d641a commit d210b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MongoDB.pas
Expand Up @@ -705,7 +705,7 @@ implementation
destructor TMongoCursor.Destroy();
begin
mongo_cursor_destroy(handle);
mongo_cursor_dispose(handle);
// mongo_cursor_dispose(handle);
end;

function TMongo.find(ns : string; cursor : TMongoCursor) : Boolean;
Expand Down

2 comments on commit d210b30

@Warlone
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please help to solve the problem described here
groups.google.com/forum/#!topic/mongodb-user/bF8b3WzBMak

@jsbattig
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gerald, I'm curious why you had to comment out mongo_cursor_dispose? (maybe it works fine with my fork of mongoc and not with yours? I know I fixed a mem leak on MongoC related to cursors lifecycles)

Please sign in to comment.