Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: runtime/bin/platform.h

Issue 1781883002: Fixes some memory leaks in //runtime/bin (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix tests on Windows Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/platform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform.h
diff --git a/runtime/bin/platform.h b/runtime/bin/platform.h
index 4dec601654a77aa306c856a36bcba615d7dea2d1..d4f96bdc2018e989fb097d2eb02bb7628181b01e 100644
--- a/runtime/bin/platform.h
+++ b/runtime/bin/platform.h
@@ -32,14 +32,12 @@ class Platform {
// Extracts the local hostname.
static bool LocalHostname(char* buffer, intptr_t buffer_length);
- // Extracts the environment variables for the current process. The
- // array of strings returned must be deallocated using
- // FreeEnvironment. The number of elements in the array is returned
- // in the count argument.
+ // Extracts the environment variables for the current process. The array of
+ // strings is Dart_ScopeAllocated. The number of elements in the array is
+ // returned in the count argument.
static char** Environment(intptr_t* count);
- static void FreeEnvironment(char** env, intptr_t count);
- static char* ResolveExecutablePath();
+ static const char* ResolveExecutablePath();
// Stores the executable name.
static void SetExecutableName(const char* executable_name) {
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698