[2/2] jscript: Simplify jsstr_release implementation.
Sebastian Lackner
sebastian at fds-team.de
Mon Sep 5 09:47:02 CDT 2016
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
The special handling is not really necessary, jsstr_free() can deal with
all types of strings.
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 e43dde9..79019a6 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)
--
2.9.0
More information about the wine-patches
mailing list