Browse files

fixed memory leak

  • Loading branch information...
1 parent 02243cd commit d19a54e0089e72e2e83b1ce2a509c031ec9a4d1c @dinhviethoa dinhviethoa committed Feb 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/data-types/mailstream_cfstream.c
View
1 src/data-types/mailstream_cfstream.c
@@ -416,6 +416,7 @@ mailstream_low * mailstream_low_cfstream_open_voip(const char * hostname, int16_
hostString = CFStringCreateWithCString(NULL, hostname, kCFStringEncodingUTF8);
CFStreamCreatePairWithSocketToHost(NULL, hostString, port, &readStream, &writeStream);
+ CFRelease(hostString);
#if TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR
if (voip_enabled) {

0 comments on commit d19a54e

Please sign in to comment.