Permalink
Browse files

Fix refcounting of the Action Tag stubs

  • Loading branch information...
alexp-sssup committed Apr 22, 2011
1 parent 2401c9f commit dc27b97690256c0f002af8b71b58cb1c9c314e9c
Showing with 2 additions and 0 deletions.
  1. +2 −0 scripting/actions.cpp
View
@@ -72,6 +72,7 @@ DoActionTag::DoActionTag(RECORDHEADER h, std::istream& in):DisplayListTag(h)
void DoActionTag::execute(MovieClip* parent, std::list < std::pair<PlaceInfo, DisplayObject*> >& ls)
{
this->incRef();
ls.push_back(make_pair(PlaceInfo(0x20000),this));
}
@@ -138,6 +139,7 @@ DoInitActionTag::DoInitActionTag(RECORDHEADER h, std::istream& in):DisplayListTa
void DoInitActionTag::execute(MovieClip* parent, std::list < std::pair<PlaceInfo, DisplayObject*> >& ls)
{
this->incRef();
ls.push_back(make_pair(PlaceInfo(0x10000),this));
}

0 comments on commit dc27b97

Please sign in to comment.