mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
More mem leak fixes which were showing up originating in nsStdURL.
This commit is contained in:
parent
d3031d8625
commit
013eeb5f2a
@ -31,6 +31,8 @@
|
||||
#include "nsIPipe.h"
|
||||
#include "nsIBufferOutputStream.h"
|
||||
#include "nsIMIMEService.h"
|
||||
#include "nsXPIDLString.h"
|
||||
|
||||
static NS_DEFINE_CID(kMIMEServiceCID, NS_MIMESERVICE_CID);
|
||||
static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
|
||||
|
||||
@ -1635,9 +1637,9 @@ nsFtpConnectionThread::Run() {
|
||||
if(NS_FAILED(rv)) return rv;
|
||||
|
||||
// Create the command channel transport
|
||||
char *host;
|
||||
nsXPIDLCString host;
|
||||
PRInt32 port = 0;
|
||||
rv = mUrl->GetHost(&host);
|
||||
rv = mUrl->GetHost(getter_Copies(host));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = mUrl->GetPort(&port);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
@ -1646,7 +1648,6 @@ nsFtpConnectionThread::Run() {
|
||||
// COMMAND CHANNEL SETUP
|
||||
///////////////////////////////
|
||||
rv = mSTS->CreateTransport(host, port, &mCPipe); // the command channel
|
||||
nsCRT::free(host);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// get the output stream so we can write to the server
|
||||
|
Loading…
Reference in New Issue
Block a user