Browse files

fixed a typo for DESTROY, and remove invalid malloc/free pair

  • Loading branch information...
1 parent bb0f2f6 commit c9c2c07f750831efd7a847d8920416f56f215632 @typester committed Apr 3, 2012
Showing with 1 addition and 3 deletions.
  1. +0 −2 XS.xs
  2. +1 −1 lib/SWFEditor.pm
View
2 XS.xs
@@ -63,7 +63,6 @@ _swf_object_open(sv)
PREINIT:
swf_object_t *swf;
CODE:
- Newx(swf, sizeof(swf_object_t), swf_object_t);
swf = swf_object_open();
sv_magic(SvRV(sv), NULL, PERL_MAGIC_ext, NULL, 0);
mg_find(SvRV(sv), PERL_MAGIC_ext)->mg_obj = (void *) swf;
@@ -74,7 +73,6 @@ _swf_object_close(swf)
CODE:
if (swf) {
swf_object_close(swf);
- Safefree(swf);
}
int
View
2 lib/SWFEditor.pm
@@ -19,7 +19,7 @@ sub new {
return $self;
}
-sub DESTORY {
+sub DESTROY {
my $self = shift;
_swf_object_close($self);
}

0 comments on commit c9c2c07

Please sign in to comment.