Skip to content

Commit

Permalink
fix a possiable memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonMiraj committed Jul 1, 2024
1 parent 592aa16 commit 7c0f622
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/chess.f90
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ program chess_checker
call svg_canva%save_to_file(checker,file_name)
call bitmap_canva%init(HEIGHT,WIDTH)
call bitmap_canva%save_to_file(checker,file_name)
call bitmap_canva%destroy()

call test_both(file_name,bitmap_canva)

Expand Down
1 change: 1 addition & 0 deletions test/circ.f90
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ program circles_pattern
call bitmap_canva%init(WIDTH,HEIGHT)
call bitmap_canva%save_to_file(canva,file_name)

call bitmap_canva%destroy()
call test_both(file_name,bitmap_canva)
contains

Expand Down
1 change: 1 addition & 0 deletions test/circle.f90
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ program circle_test
call svg_canva%init(CANVAS_WIDTH, CANVAS_HEIGHT)
call svg_canva%save_to_file(canva, file_name)

call bitmap_canva%destroy()
call test_both(file_name,bitmap_canva)

end program circle_test
Expand Down
1 change: 1 addition & 0 deletions test/drawing_test.f90
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ program drawing_test_all
call svg_canva%init(CANVAS_WIDTH, CANVAS_HEIGHT)
call svg_canva%save_to_file(canva,file_name)

call bitmap_canva%destroy()
call test_both(file_name,bitmap_canva)
end program drawing_test_all

1 change: 1 addition & 0 deletions test/line.f90
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ program radial_lines
call svg_canva%init(CANVAS_WIDTH, CANVAS_HEIGHT)
call svg_canva%save_to_file(radial_canvas, file_name)

call bitmap_canva%destroy()
call test_both(file_name,bitmap_canva)
contains

Expand Down
1 change: 1 addition & 0 deletions test/smile.f90
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ program smile
call svg_canva%init(CANVAS_WIDTH, CANVAS_HEIGHT)
call svg_canva%save_to_file(canva, file_name)

call bitmap_canva%destroy()
call test_both(file_name,bitmap_canva)

end program smile
Expand Down
1 change: 1 addition & 0 deletions test/triangle.f90
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ program test_fig_draw_triangle
call svg_canva%init(CANVAS_WIDTH, CANVAS_HEIGHT)
call svg_canva%save_to_file(test_canvas, file_name)

call bitmap_canva%destroy()
call test_both(file_name,bitmap_canva)
end program test_fig_draw_triangle

1 change: 1 addition & 0 deletions test/triangle_pattern.f90
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ program test_fig_fill_triangle
call svg_canva%init(CANVAS_WIDTH, CANVAS_HEIGHT)
call svg_canva%save_to_file(test_canvas, file_name)

call bitmap_canva%destroy()
call test_both(file_name,bitmap_canva)
contains
subroutine random_color(color)
Expand Down

0 comments on commit 7c0f622

Please sign in to comment.