aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/provider
diff options
context:
space:
mode:
authorGravatar Hoa V. Dinh <dinh.viet.hoa@gmail.com>2013-09-09 13:26:05 -0700
committerGravatar Hoa V. Dinh <dinh.viet.hoa@gmail.com>2013-09-09 13:26:12 -0700
commitf0834e53d76c95eb79abbb5b594d64a8b9805645 (patch)
tree72bab896e03b7932a4ce5cccadff8d3f5acf8d11 /src/core/provider
parentc32bea6c4371284cc748f6e67c4b9444412f9a40 (diff)
Fixed #367: fixed -hostnameWithEmail:
Diffstat (limited to 'src/core/provider')
-rw-r--r--src/core/provider/MCNetService.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/provider/MCNetService.cc b/src/core/provider/MCNetService.cc
index f760dc61..77a21ce2 100644
--- a/src/core/provider/MCNetService.cc
+++ b/src/core/provider/MCNetService.cc
@@ -102,7 +102,7 @@ ConnectionType NetService::connectionType()
String * NetService::normalizedHostnameWithEmail(String * email)
{
Array *components = email->componentsSeparatedByString(MCSTR("@"));
- String *hostname = (String *) mHostname->copy();
+ String *hostname = (String *) mHostname->copy()->autorelease();
if (components->count() != 0) {
hostname->replaceOccurrencesOfString(MCSTR("{domain}"), (String *) components->lastObject());
return hostname;