Skip to content

Commit

Permalink
mark then free
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Sep 3, 2009
1 parent b4ab736 commit 8bf8fd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ffmpeg/format_parameters.rb
Expand Up @@ -5,7 +5,6 @@ class FFMPEG::FormatParameters
builder.prefix <<-C
void free_format_parameters(AVFormatParameters* format_parameters)
{
fprintf(stderr, "free format parameters\\n");
av_free(format_parameters);
}
C
Expand All @@ -23,7 +22,7 @@ class FFMPEG::FormatParameters
if (!format_parameters)
rb_raise(rb_eNoMemError, "unable to allocate AVFormatParameters");
obj = Data_Wrap_Struct(self, free_format_parameters, NULL, format_parameters);
obj = Data_Wrap_Struct(self, NULL, free_format_parameters, format_parameters);
return obj;
}
Expand Down

0 comments on commit 8bf8fd2

Please sign in to comment.