mirror of
https://github.com/rkd77/elinks.git
synced 2025-09-21 19:46:23 -04:00
Bug 846: Separate JS_GetParent & JS_GetPrivate calls from initializations.
This will allow the types of objects to be checked before those calls.
This commit is contained in:
committed by
Kalle Olavi Niemitalo
parent
98a120b3d5
commit
bbf0d478e9
@@ -25,7 +25,9 @@ struct smjs_action_fn_callback_hop {
|
||||
static void
|
||||
smjs_action_fn_finalize(JSContext *ctx, JSObject *obj)
|
||||
{
|
||||
struct smjs_action_fn_callback_hop *hop = JS_GetPrivate(ctx, obj); /* from @action_fn_class */
|
||||
struct smjs_action_fn_callback_hop *hop;
|
||||
|
||||
hop = JS_GetPrivate(ctx, obj); /* from @action_fn_class */
|
||||
|
||||
if (hop) mem_free(hop);
|
||||
}
|
||||
|
Reference in New Issue
Block a user