Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix dispose error for TMongoCursor.Destroy()

  • Loading branch information...
commit d210b30f55c5e51c5fe286b0124fee8715a01f97 1 parent 76d641a
Gerald Lindsly authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  MongoDB.pas
2  MongoDB.pas
View
@@ -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;

2 comments on commit d210b30

Warlone

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

jsbattig

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.
Something went wrong with that request. Please try again.