YogaNodeJNIFinalizer.smali
.class public Lcom/facebook/yoga/YogaNodeJNIFinalizer;
.super Lcom/facebook/yoga/YogaNodeJNIBase;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Lcom/facebook/yoga/YogaNodeJNIBase;-><init>()V
return-void
.end method
.method public constructor <init>(Lcom/facebook/yoga/YogaConfig;)V
.registers 2
.line 2
invoke-direct {p0, p1}, Lcom/facebook/yoga/YogaNodeJNIBase;-><init>(Lcom/facebook/yoga/YogaConfig;)V
return-void
.end method
# virtual methods
.method public finalize()V
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Throwable;
}
.end annotation
.line 1
:try_start_0
invoke-virtual {p0}, Lcom/facebook/yoga/YogaNodeJNIFinalizer;->freeNatives()V
:try_end_3
.catchall {:try_start_0 .. :try_end_3} :catchall_7
.line 2
invoke-super {p0}, Ljava/lang/Object;->finalize()V
return-void
:catchall_7
move-exception v0
invoke-super {p0}, Ljava/lang/Object;->finalize()V
.line 3
throw v0
.end method
.method public freeNatives()V
.registers 6
.line 1
iget-wide v0, p0, Lcom/facebook/yoga/YogaNodeJNIBase;->mNativePointer:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_d
.line 2
iput-wide v2, p0, Lcom/facebook/yoga/YogaNodeJNIBase;->mNativePointer:J
.line 3
invoke-static {v0, v1}, Lcom/facebook/yoga/YogaNative;->jni_YGNodeFreeJNI(J)V
:cond_d
return-void
.end method