summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-04-11 23:49:00 +0000
committerRené Schümann <white06tiger@gmail.com>2014-04-11 23:49:00 +0000
commit2f3a0b621a27f2a08243681fc94c0b49f4201940 (patch)
tree986430dd835d0446e108c0ea39c8d7d2be93284f /plugins
parent481bff2e2bd0bfd1ce306a2a514e63145fb63917 (diff)
SendSS
! fixed memory leak (CSendHost_uploadpie, CSendImageShack) - removed debug output (CSendHost_uploadpie) git-svn-id: http://svn.miranda-ng.org/main/trunk@8962 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/SendScreenshotPlus/src/CSendHost_uploadpie.cpp3
-rw-r--r--plugins/SendScreenshotPlus/src/CSendImageShack.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSendHost_uploadpie.cpp b/plugins/SendScreenshotPlus/src/CSendHost_uploadpie.cpp
index 9b975b7a6e..aa4a82abc4 100644
--- a/plugins/SendScreenshotPlus/src/CSendHost_uploadpie.cpp
+++ b/plugins/SendScreenshotPlus/src/CSendHost_uploadpie.cpp
@@ -69,8 +69,6 @@ void CSendHost_UploadPie::SendThread(void* obj)
if(reply){
if(reply->resultCode>=200 && reply->resultCode<300){
reply->pData[reply->dataLength]='\0';/// make sure its null terminated
-
- OutputDebugStringA(reply->pData);
char* url=reply->pData;
do{
char* pos;
@@ -87,6 +85,7 @@ void CSendHost_UploadPie::SendThread(void* obj)
}while(url);
if(url){
mir_free(self->m_URL), self->m_URL=mir_strdup(url);
+ CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT,0,(LPARAM)reply);
self->svcSendMsgExit(url); return;
}else{/// check error mess from server
TCHAR* err=mir_a2t(reply->pData);
diff --git a/plugins/SendScreenshotPlus/src/CSendImageShack.cpp b/plugins/SendScreenshotPlus/src/CSendImageShack.cpp
index 9f5d5dce46..9d37604197 100644
--- a/plugins/SendScreenshotPlus/src/CSendImageShack.cpp
+++ b/plugins/SendScreenshotPlus/src/CSendImageShack.cpp
@@ -90,6 +90,7 @@ void CSendImageShack::SendThread() {
}else{
mir_freeAndNil(m_URLthumb);
}
+ CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT,0,(LPARAM)reply);
svcSendMsgExit(url); return;
}else{/// check error mess from server
url=GetHTMLContent(reply->pData,"<error ","</error>");