Skip to content

Commit fe6f38c

Browse files
vo_chafa: use the TA_FREEP macro where applicable
1 parent 399170a commit fe6f38c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

video/out/vo_chafa.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ static void dealloc_canvas_and_buffers(struct vo *vo)
9797
}
9898

9999
if (priv->frame) {
100-
talloc_free(priv->frame);
101-
priv->frame = NULL;
100+
TA_FREEP(&priv->frame);
102101
}
103102
}
104103

@@ -408,7 +407,7 @@ static bool draw_frame(struct vo *vo, struct vo_frame *frame)
408407
priv->frame->stride[0]);
409408

410409
if (mpi)
411-
talloc_free(mpi);
410+
TA_FREEP(&mpi);
412411

413412
done:
414413
return VO_TRUE;

0 commit comments

Comments
 (0)