Skip to content

Commit

Permalink
Fix tiny memory leak on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pommicket committed Sep 8, 2024
1 parent fd1e2b3 commit a6dd449
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ FUTURE FEATURES:
- restart LSP server automatically?
- LSP request timeout
- reflow command
- editing files with invalid UTF-8
*/

/*
Expand Down Expand Up @@ -480,7 +481,9 @@ int main(int argc, char **argv) {
}
if (fs_path_type(ted->local_data_dir) == FS_NON_EXISTENT)
fs_mkdir(ted->local_data_dir);

#if _WIN32
free(appdata);
#endif
}

{
Expand Down
6 changes: 3 additions & 3 deletions windows_installer/ted/ted.vdproj
Original file line number Diff line number Diff line change
Expand Up @@ -620,15 +620,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:ted"
"ProductCode" = "8:{54706FEE-3070-4909-A56B-1FCFE6EB66C3}"
"PackageCode" = "8:{BFB90C03-ECC1-4511-9D2A-C6FEAB445A37}"
"ProductCode" = "8:{FE089CC3-B77A-4ECE-94D1-D27FEB47F0BD}"
"PackageCode" = "8:{EEB36C34-97D6-4E30-B692-0867FC18BC67}"
"UpgradeCode" = "8:{844F6C2B-DF3B-4A81-9BD5-603401BBA651}"
"AspNetVersion" = "8:2.0.50727.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:FALSE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:24.09.0800"
"ProductVersion" = "8:24.09.0801"
"Manufacturer" = "8:ted"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
Expand Down

0 comments on commit a6dd449

Please sign in to comment.