From f7b64b7de232d94f8d7e08008aa51e5bb78fc71f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 3 May 2007 22:08:12 +0000 Subject: [PATCH] fix possible leak --- stepmania/src/AutoActor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/AutoActor.cpp b/stepmania/src/AutoActor.cpp index dbf809c282..0e2defd99d 100644 --- a/stepmania/src/AutoActor.cpp +++ b/stepmania/src/AutoActor.cpp @@ -20,6 +20,8 @@ AutoActor::AutoActor( const AutoActor &cpy ) AutoActor &AutoActor::operator=( const AutoActor &cpy ) { + Unload(); + if( cpy.m_pActor == NULL ) m_pActor = NULL; else