[Scummvm-cvs-logs] scummvm master -> 3207c011cbbf09bde16907a34f7e27b3218b36e8

sev- sev at scummvm.org
Tue Dec 10 21:28:20 CET 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:
3207c011cb FULLPIPE: Plug memory leak


Commit: 3207c011cbbf09bde16907a34f7e27b3218b36e8
    https://github.com/scummvm/scummvm/commit/3207c011cbbf09bde16907a34f7e27b3218b36e8
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2013-12-10T12:27:31-08:00

Commit Message:
FULLPIPE: Plug memory leak

Changed paths:
    engines/fullpipe/messages.cpp



diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp
index c28365a..32cfb4f 100644
--- a/engines/fullpipe/messages.cpp
+++ b/engines/fullpipe/messages.cpp
@@ -576,13 +576,12 @@ int GlobalMessageQueueList::compact() {
 	uint i;
 
 	for (i = 1; i < size() + 2; i++) {
-		if (!useList[i]) {
-			delete [] useList;
-
-			return i;
-		}
+		if (!useList[i])
+			break;
 	}
 
+	delete [] useList;
+
 	return i;
 }
 






More information about the Scummvm-git-logs mailing list