FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Added git_diff_delta_dup to git_diff_get_patch to fix a memory issue whe... by kmctown · Pull Request #113 · nodegit/nodegit · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .cc  (1) .json  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
3 changes: 3 additions & 0 deletions src/diff_list.cc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ Handle<Value> GitDiffList::Patch(const Arguments& args) {
toReturn->Set(String::NewSymbol("patch"), to);

if (delta_out != NULL) {
delta_out = (const git_diff_delta * )git_diff_delta_dup(delta_out);
}
if (delta_out != NULL) {
to = GitDelta::New((void *)delta_out);
} else {
to = Null();
Expand Down
1 change: 1 addition & 0 deletions v0.18.0.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -3689,6 +3689,7 @@
"name": "delta_out",
"jsName": "delta",
"cType": "const git_diff_delta **",
"copy": "git_diff_delta_dup",
"cppClassName": "GitDelta",
"jsClassName": "Delta",
"isReturn": true,
Expand Down

Back | FazBrowse Home | New Git URL