jscript: Simplify jsstr_release implementation.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
35bab5ce64
commit
7369836323
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue