Changeset 266577 in webkit


Ignore:
Timestamp:
Sep 3, 2020, 10:19:20 PM (5 years ago)
Author:
Carlos Garcia Campos
Message:

Unreviewed. [GLIB] Add missing return

There's no change in behavior because jsObjectCall() returns undefined in case of failure, but fixes a memory leak.

  • API/glib/JSCValue.cpp:

(jsc_value_object_invoke_methodv):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/glib/JSCValue.cpp

    r254331 r266577  
    10111011    auto result = jsObjectCall(jsContext, function, JSC::JSCCallbackFunction::Type::Method, object, arguments, &exception);
    10121012    if (jscContextHandleExceptionIfNeeded(priv->context.get(), exception))
    1013         jsc_value_new_undefined(priv->context.get());
     1013        return jsc_value_new_undefined(priv->context.get());
    10141014
    10151015    return jscContextGetOrCreateValue(priv->context.get(), result).leakRef();
  • trunk/Source/JavaScriptCore/ChangeLog

    r266567 r266577  
     12020-09-03  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Unreviewed. [GLIB] Add missing return
     4
     5        There's no change in behavior because jsObjectCall() returns undefined in case of failure, but fixes a memory leak.
     6
     7        * API/glib/JSCValue.cpp:
     8        (jsc_value_object_invoke_methodv):
     9
    1102020-09-02  Yusuke Suzuki  <ysuzuki@apple.com>
    211
Note: See TracChangeset for help on using the changeset viewer.