Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed newly introduced memleak (was calling extra SvREFCNT_inc when S…

…V* isnt made mortal twice)
  • Loading branch information...
commit a6cddb9f35dfac861b061a633c8302f2af876695 1 parent 9709efb
@FROGGS FROGGS authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/SDLx/Validate.h
View
3  src/SDLx/Validate.h
@@ -47,7 +47,8 @@ SV *create_mortal_rect( SV *rect, int* new_rect_made)
/* we already had a good mortal rect . Just pass it along */
(*new_rect_made) = 0;
retval = rect;
- SvREFCNT_inc(rect);
+ // no need to inc REFCNT since we dont make the SV mortal twice
+ //SvREFCNT_inc(rect);
}
else
croak("Rect must be number or arrayref or SDL::Rect or undef");
Please sign in to comment.
Something went wrong with that request. Please try again.