diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-11 15:26:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-11 15:26:39 +0300 |
commit | 6768e966c8ac857b3e7043d5ffcbba77f5e35991 (patch) | |
tree | e4308ae714843efee3dff75c88d2f02099a306d7 /plugins/AVS/src | |
parent | 05da7a15de40291b2135d8e089e24ec20babb065 (diff) |
obsolete & very strange code optimized
Diffstat (limited to 'plugins/AVS/src')
-rw-r--r-- | plugins/AVS/src/services.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/AVS/src/services.cpp b/plugins/AVS/src/services.cpp index 691b84ee10..aac9a39080 100644 --- a/plugins/AVS/src/services.cpp +++ b/plugins/AVS/src/services.cpp @@ -798,7 +798,7 @@ static void ReloadMyAvatar(LPVOID lpParam) NotifyEventHooks(hMyAvatarChanged, (WPARAM)myAvatarProto, 0);
}
- free(lpParam);
+ mir_free(lpParam);
}
INT_PTR ReportMyAvatarChanged(WPARAM wParam, LPARAM)
@@ -812,9 +812,7 @@ INT_PTR ReportMyAvatarChanged(WPARAM wParam, LPARAM) continue;
if (!mir_strcmp(it->szProtoname, proto)) {
- LPVOID lpParam = (void *)malloc(mir_strlen(it->szProtoname) + 2);
- mir_strcpy((char *)lpParam, it->szProtoname);
- mir_forkthread(ReloadMyAvatar, lpParam);
+ mir_forkthread(ReloadMyAvatar, mir_strdup(it->szProtoname));
return 0;
}
}
|