From 81ec6a3f138ce663666ea3277b6702521421be29 Mon Sep 17 00:00:00 2001
From: Evan Hemsley <[EMAIL REDACTED]>
Date: Fri, 6 Jun 2025 14:07:38 -0700
Subject: [PATCH] Fix CLI leaking props (#148)
---
src/cli.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/cli.c b/src/cli.c
index 19e003c..a0198dc 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -590,6 +590,8 @@ int main(int argc, char *argv[])
break;
}
}
+
+ SDL_DestroyProperties(spirvInfo.props);
} else {
SDL_ShaderCross_HLSL_Info hlslInfo;
hlslInfo.source = fileData;
@@ -659,6 +661,7 @@ int main(int argc, char *argv[])
SDL_free(spirv);
SDL_free(buffer);
}
+ SDL_DestroyProperties(spirvInfo.props);
}
break;
}
@@ -712,6 +715,7 @@ int main(int argc, char *argv[])
SDL_IOprintf(outputIO, "%s", buffer);
SDL_free(spirv);
SDL_free(buffer);
+ SDL_DestroyProperties(spirvInfo.props);
break;
}