Skip to content

Commit

Permalink
ecere/gfx/Bitmap: Freeing 'this' Bitmap object before setting new val…
Browse files Browse the repository at this point in the history
…ues in Copy2()
  • Loading branch information
jerstlouis committed Jul 13, 2020
1 parent c4307f6 commit aff71d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ecere/src/gfx/Bitmap.ec
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ public:
bool result = false;
if(source)
{
Free();

// TODO: Watch out for inst stuff
width = source.width;
height = source.height;
Expand Down

0 comments on commit aff71d5

Please sign in to comment.