Build file reference counting fix
This commit is contained in:
parent
7f12928fe9
commit
e27c58e953
@ -307,6 +307,8 @@ pub fn openDocument(self: *DocumentStore, uri: []const u8, text: []const u8) !*H
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn decrementBuildFileRefs(self: *DocumentStore, build_file: *BuildFile) void {
|
fn decrementBuildFileRefs(self: *DocumentStore, build_file: *BuildFile) void {
|
||||||
|
if (build_file.refs == 0) return;
|
||||||
|
|
||||||
build_file.refs -= 1;
|
build_file.refs -= 1;
|
||||||
if (build_file.refs == 0) {
|
if (build_file.refs == 0) {
|
||||||
std.debug.warn("Freeing build file {}\n", .{build_file.uri});
|
std.debug.warn("Freeing build file {}\n", .{build_file.uri});
|
||||||
|
Loading…
Reference in New Issue
Block a user