[Scummvm-cvs-logs] scummvm master -> d09cccd7f245bd2d5ddfba18fceb5eb13449600d

sev- sev at scummvm.org
Sun Sep 15 00:54:33 CEST 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d09cccd7f2 FULLPIPE: Added few destructors.


Commit: d09cccd7f245bd2d5ddfba18fceb5eb13449600d
    https://github.com/scummvm/scummvm/commit/d09cccd7f245bd2d5ddfba18fceb5eb13449600d
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2013-09-14T15:53:44-07:00

Commit Message:
FULLPIPE: Added few destructors.

Changed paths:
    engines/fullpipe/statics.cpp
    engines/fullpipe/statics.h



diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 7d692ab..ac80e80 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -1020,6 +1020,11 @@ Statics::Statics() {
 	_staticsName = 0;
 }
 
+Statics::~Statics() {
+	delete _picture;
+	free(_staticsName);
+}
+
 Statics::Statics(Statics *src, bool reverse) : DynamicPhase(src, reverse) {
 	_staticsId = src->_staticsId;
 
@@ -1603,6 +1608,10 @@ DynamicPhase::DynamicPhase() {
 	_someY = 0;
 }
 
+DynamicPhase::~DynamicPhase() {
+	delete _rect;
+}
+
 DynamicPhase::DynamicPhase(DynamicPhase *src, bool reverse) {
 	_field_7C = src->_field_7C;
 	_field_7E = 0;
@@ -1698,6 +1707,10 @@ StaticPhase::StaticPhase() {
 	_exCommand = 0;
 }
 
+StaticPhase::~StaticPhase() {
+	delete _exCommand;
+}
+
 bool StaticPhase::load(MfcArchive &file) {
 	debug(5, "StaticPhase::load()");
 
diff --git a/engines/fullpipe/statics.h b/engines/fullpipe/statics.h
index 3d45ac6..03d87c8 100644
--- a/engines/fullpipe/statics.h
+++ b/engines/fullpipe/statics.h
@@ -56,6 +56,7 @@ class StaticPhase : public Picture {
 
   public:
 	StaticPhase();
+	virtual ~StaticPhase();
 
 	virtual bool load(MfcArchive &file);
 
@@ -74,6 +75,7 @@ class DynamicPhase : public StaticPhase {
   public:
 	DynamicPhase();
 	DynamicPhase(DynamicPhase *src, bool reverse);
+	virtual ~DynamicPhase();
 
 	virtual bool load(MfcArchive &file);
 
@@ -89,6 +91,7 @@ class Statics : public DynamicPhase {
   public:
 	Statics();
 	Statics(Statics *src, bool reverse);
+	virtual ~Statics();
 
 	virtual bool load(MfcArchive &file);
 	Statics *getStaticsById(int itemId);






More information about the Scummvm-git-logs mailing list