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

Unified Diff: runtime/bin/isolate_data.h

Issue 85993002: Add UDP support to dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update test Created 7 years 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
Index: runtime/bin/isolate_data.h
diff --git a/runtime/bin/isolate_data.h b/runtime/bin/isolate_data.h
index 8a977beb4406f098e7b940b50784f027f4630dc9..3dc0ba2f8d34ea1a9fbe74988cad0cafa2d16e82 100644
--- a/runtime/bin/isolate_data.h
+++ b/runtime/bin/isolate_data.h
@@ -20,13 +20,16 @@ class EventHandler;
// when the isolate shuts down.
class IsolateData {
public:
- explicit IsolateData(const char* url) : script_url(strdup(url)) {
+ explicit IsolateData(const char* url)
+ : script_url(strdup(url)), udp_receive_buffer(NULL) {
}
~IsolateData() {
free(script_url);
+ free(udp_receive_buffer);
}
char* script_url;
+ uint8_t* udp_receive_buffer;
private:
DISALLOW_COPY_AND_ASSIGN(IsolateData);

Powered by Google App Engine
This is Rietveld 408576698