Skip to content

Commit

Permalink
Does this fix the memory leak?
Browse files Browse the repository at this point in the history
  • Loading branch information
oshaboy committed Nov 4, 2023
1 parent 6ee8089 commit e46fbdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/chafa/chafa.c
Original file line number Diff line number Diff line change
Expand Up @@ -2897,7 +2897,10 @@ run_generic (const gchar *filename, gboolean is_first_file, gboolean is_first_fr

chafa_free_gstring_array (gsa);
}
chafa_frame_unref (canvas->image->frame);
chafa_image_unref (canvas->image);
chafa_canvas_unref(canvas);

if (is_animation)
{
/* Account for time spent converting and printing frame */
Expand Down

0 comments on commit e46fbdd

Please sign in to comment.