Sebastian Lackner : jscript: Simplify jsstr_release implementation.
Alexandre Julliard
julliard at winehq.org
Tue Sep 6 10:47:30 CDT 2016
Module: wine
Branch: master
Commit: 736983632316d2b0dc426add0789e150792f0ae9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=736983632316d2b0dc426add0789e150792f0ae9
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Mon Sep 5 16:47:02 2016 +0200
jscript: Simplify jsstr_release implementation.
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/jscript/jsstr.h | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/dlls/jscript/jsstr.h b/dlls/jscript/jsstr.h
index 2ad03f1..48fa2be 100644
--- a/dlls/jscript/jsstr.h
+++ b/dlls/jscript/jsstr.h
@@ -106,12 +106,8 @@ void jsstr_free(jsstr_t*) DECLSPEC_HIDDEN;
static inline void jsstr_release(jsstr_t *str)
{
- if(!--str->ref) {
- if(jsstr_is_inline(str))
- heap_free(str);
- else
- jsstr_free(str);
- }
+ if(!--str->ref)
+ jsstr_free(str);
}
static inline jsstr_t *jsstr_addref(jsstr_t *str)
More information about the wine-cvs
mailing list