0
0
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:
Kalle Olavi Niemitalo
2006-11-24 08:50:12 +02:00
committed by Kalle Olavi Niemitalo
parent 98a120b3d5
commit bbf0d478e9
11 changed files with 320 additions and 140 deletions

View File

@@ -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);
}