commit 770df1e728314bf45c77fdeb43c39cf9ae96a036
parent 06a1d1f835eb30e1b93036e72264b0e902dc3153
Author: Andrew Laack <andrew@laack.co>
Date: Thu, 17 Sep 2026 14:54:32 -0500
Fix leaking window
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/main.cpp b/src/main.cpp
@@ -88,7 +88,6 @@ int main(int argc, char** argv) {
InitWindow(xMax, yMax, "abg");
sendToBg("abg");
-
while (!WindowShouldClose()) {
Graph g = Graph(edgeCount, vertexCount, xMax, yMax);
std::vector<double> minEdgeToVertex(vertexCount, -1);
@@ -129,6 +128,9 @@ int main(int argc, char** argv) {
oneStepPrim(toVisit, visitedIndices, g, minEdgeToVertex);
}
+
UnloadRenderTexture(blankGraph);
}
+
+ CloseWindow();
}