[ scummvm-Bugs-1098864 ] Possible that smush player tries to release resource twice

SourceForge.net noreply at sourceforge.net
Sun Jan 9 12:38:03 CET 2005


Bugs item #1098864, was opened at 2005-01-09 11:38
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1098864&group_id=37116

Category: Insane/Smush
Group: All Games
Status: Open
Resolution: None
Priority: 5
Submitted By: Lars Persson (anotherguest)
Assigned to: Eugene Sandulenko (sev)
Summary: Possible that smush player tries to release resource twice

Initial Comment:
After been adopting the smush player to suit Symbian 
OS thread handling I found a potential problem which is 
very easily fixed.

The Destructor of the smushplayer looks like this
SmushPlayer::~SmushPlayer() {
	if (_initDone)
		release();
}

But if release() has been called by aborting the movie 
playback _initDone is still true, and thus release() is 
called twice.. once from play() and once from the 
destructor. release() should finish off by setting 
_initDone = false, as the resources now are dead.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1098864&group_id=37116




More information about the Scummvm-tracker mailing list