Skip to content

Commit

Permalink
Fix memory leak in RageSurface_Load_PNG.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram authored Sep 16, 2018
1 parent ecc9a0f commit 993933b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/RageSurface_Load_PNG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ RageSurface *RageSurface_Load_PNG( RageFile *f, const char *fn, char errorbuf[10
png_read_end( png, info_ptr );
png_destroy_read_struct( &png, &info_ptr, nullptr );

delete row_pointers;

return img;
}

Expand Down

0 comments on commit 993933b

Please sign in to comment.