Permalink
Browse files

using malloc instead of safemalloc, dev-release

  • Loading branch information...
1 parent b4cd846 commit 3e2cef50da7e0812b51a0ec90a272f951b4e2ca2 @FROGGS FROGGS committed Dec 28, 2011
Showing with 6 additions and 3 deletions.
  1. +3 −0 CHANGELOG
  2. +1 −1 lib/SDL.pm
  3. +2 −2 src/Mixer/Channels.xs
View
@@ -1,5 +1,8 @@
Revision history for Perl extension SDL_perl.
+* 2.535_05 Dec 28 2011
+ - SDL::Mixer::Channels: using malloc instead of safemalloc [FROGGS]
+
* 2.535_04 Dec 26 2011
- SDL::Mixer::Channels: get_chunk returns a copy of the retrieved chunk
that we can free safely [FROGGS]
View
@@ -54,7 +54,7 @@ our %EXPORT_TAGS = (
defaults => $SDL::Constants::EXPORT_TAGS{'SDL/defaults'}
);
-our $VERSION = '2.535_04';
+our $VERSION = '2.535_05';
$VERSION = eval $VERSION;
print "$VERSION" if ( defined( $ARGV[0] ) && ( $ARGV[0] eq '--SDLperl' ) );
View
@@ -215,8 +215,8 @@ mixchan_get_chunk(chan)
char* CLASS = "SDL::Mixer::MixChunk";
CODE:
Mix_Chunk *chunk = Mix_GetChunk(chan);
- Mix_Chunk *copy = safemalloc(sizeof(Mix_Chunk));
- copy->abuf = safemalloc( chunk->alen );
+ Mix_Chunk *copy = malloc(sizeof(Mix_Chunk));
+ copy->abuf = malloc( chunk->alen );
memcpy( copy->abuf, chunk->abuf, chunk->alen );
copy->alen = chunk->alen;
copy->volume = chunk->volume;

0 comments on commit 3e2cef5

Please sign in to comment.