You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fixes leak in Find in Files utility
This commit is contained in:
@@ -828,8 +828,8 @@ void FindInFilesPanel::apply_replaces_in_file(String fpath, const Vector<Result>
|
|||||||
// If there are unsaved changes, the user will be asked on focus,
|
// If there are unsaved changes, the user will be asked on focus,
|
||||||
// however that means either losing changes or losing replaces.
|
// however that means either losing changes or losing replaces.
|
||||||
|
|
||||||
FileAccess *f = FileAccess::open(fpath, FileAccess::READ);
|
FileAccessRef f = FileAccess::open(fpath, FileAccess::READ);
|
||||||
ERR_FAIL_COND_MSG(f == NULL, "Cannot open file from path '" + fpath + "'.");
|
ERR_FAIL_COND_MSG(!f, "Cannot open file from path '" + fpath + "'.");
|
||||||
|
|
||||||
String buffer;
|
String buffer;
|
||||||
int current_line = 1;
|
int current_line = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user