diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-02-24 16:04:55 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-02-24 16:04:55 +0000 |
commit | 83f05d582cdb837cef1b2c103ebb1e2a00568371 (patch) | |
tree | b5b40d269f65e52efe432e6e913c5d6b8a06276a /protocols/Skype/src/skype_proto.cpp | |
parent | 4330f80c5e76c7cbc277ff27e57d3abc308bc915 (diff) |
fixes crashes for work with last proto changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@3756 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.cpp')
-rw-r--r-- | protocols/Skype/src/skype_proto.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/Skype/src/skype_proto.cpp b/protocols/Skype/src/skype_proto.cpp index 18a8483897..c5014171b4 100644 --- a/protocols/Skype/src/skype_proto.cpp +++ b/protocols/Skype/src/skype_proto.cpp @@ -5,7 +5,7 @@ CSkypeProto::CSkypeProto(const char* protoName, const TCHAR* userName) ProtoConstructor(this, protoName, userName);
//this->login = NULL;
- this->password = NULL;
+ //this->password = NULL;
this->rememberPassword = false;
this->signin_lock = CreateMutex(0, false, 0);
@@ -27,7 +27,11 @@ CSkypeProto::~CSkypeProto() ::CloseHandle(this->signin_lock);
::mir_free(this->login);
- ::mir_free(this->password);
+ if (this->password)
+ {
+ ::mir_free(this->password);
+ this->password = NULL;
+ }
ProtoDestructor(this);
}
|