Skip to content

Commit

Permalink
Update ReleaseHandle to check return values
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Apr 16, 2020
1 parent 4188058 commit 39c31e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public SafeSqliteBlobHandle(SafeSqliteHandle sqliteHandle, sqlite3_blob? wrapper

protected override bool ReleaseChildHandle()
{
raw.sqlite3_blob_close(Wrapper);
return true;
var result = (Result)raw.sqlite3_blob_close(Wrapper);
return result == Result.OK;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public SafeSqliteHandle(sqlite3? wrapper)

protected override bool ReleaseHandle()
{
raw.sqlite3_close(Wrapper);
return true;
var result = (Result)raw.sqlite3_close(Wrapper);
return result == Result.OK;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public SafeSqliteStatementHandle(SafeSqliteHandle sqliteHandle, sqlite3_stmt? wr

protected override bool ReleaseChildHandle()
{
raw.sqlite3_finalize(Wrapper);
return true;
var result = (Result)raw.sqlite3_finalize(Wrapper);
return result == Result.OK;
}
}
}

0 comments on commit 39c31e3

Please sign in to comment.