Skip to content

Commit

Permalink
add refcount to pix that is replaced into a pixa
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcohn authored Jul 16, 2019
1 parent 4972d55 commit 5c288c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pixabasic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1315,6 +1315,7 @@ BOXA *boxa;

pixDestroy(&(pixa->pix[index]));
pixa->pix[index] = pix;
pixChangeRefCount(pix, 1);

if (box) {
boxa = pixa->boxa;
Expand Down

0 comments on commit 5c288c0

Please sign in to comment.