Colin Snover
bb26bf7994
FULLPIPE: Fix memory leaks and unnecessary indirect allocations in Motion and Sc2
2017-11-18 22:35:12 +01:00
Colin Snover
ca5a86e703
FULLPIPE: Fix memory leak of global message queues
2017-11-18 22:35:12 +01:00
Colin Snover
c2dcb27e35
FULLPIPE: Fix memory leaks in ModalMainMenu
2017-11-18 22:35:12 +01:00
Colin Snover
e2367f3ed2
FULLPIPE: Remove unnecessary and unsafe C-style casts
2017-11-18 22:35:12 +01:00
Colin Snover
39ea2f66ac
FULLPIPE: Fix deleted queue leaks & clarify flags
2017-11-18 22:35:12 +01:00
Colin Snover
073692fd52
FULLPIPE: Reduce chance of Scene leaks, remove unused SceneTag member
2017-11-18 22:35:12 +01:00
Colin Snover
0e28f2be47
FULLPIPE: Remove unused gap data from EntranceInfo
2017-11-18 22:35:12 +01:00
Colin Snover
d07e9a0cf1
FULLPIPE: Fix memory leaks and ownership problems with Behavior objects
2017-11-18 22:35:12 +01:00
Colin Snover
384d68b679
FULLPIPE: Correctly fix Bitmap leaks
2017-11-18 22:35:12 +01:00
Colin Snover
7c66ffe5c8
FULLPIPE: Fix memory leak of MGMItem
2017-11-18 22:35:12 +01:00
Colin Snover
14a6ff0810
FULLPIPE: Fix memory leaks of MovTable and remove unnecessary extra class
2017-11-18 22:35:12 +01:00
Colin Snover
7514c5289b
FULLPIPE: Remove manual memory management of streams
2017-11-18 22:35:12 +01:00
Colin Snover
b90f21597a
FULLPIPE: Use bool literals instead of ints for bool properties
2017-11-18 22:35:12 +01:00
Colin Snover
350ddcee10
FULLPIPE: Take references instead of pointers for required arguments in statics, remove unnecessary Picture allocation
2017-11-18 22:35:12 +01:00
Colin Snover
c85f409a0b
FULLPIPE: Remove memory leaks and manual memory management in Scene
2017-11-18 22:35:12 +01:00
Colin Snover
1337f04122
FULLPIPE: Fix memory leaks of SceneTag
2017-11-18 22:35:12 +01:00
Colin Snover
8e8932f38d
FULLPIPE: Remove unnecessary and illegal C-style casts
2017-11-18 22:35:12 +01:00
Colin Snover
5c89c39325
FULLPIPE: Fix memory leak of save game thumbnail
2017-11-18 22:35:12 +01:00
Colin Snover
ff96db23df
FULLPIPE: Fix leaks and unnecessary extra allocations in FullpipeEngine
2017-11-18 22:35:12 +01:00
Colin Snover
6f8a65c739
FULLPIPE: Fix memory leak & unnecessary heap allocation of Rects
2017-11-18 22:35:12 +01:00
Colin Snover
5ab7a12779
FULLPIPE: Fix memory leaks of inventory icons and items
2017-11-18 22:35:12 +01:00
Colin Snover
ac593e045e
FULLPIPE: Fix memory leaks in ModalVideoPlayer
2017-11-18 22:35:12 +01:00
Colin Snover
926bcb6740
FULLPIPE: Handle quit/RTL events correctly
...
Fixes Trac#10316.
2017-11-18 22:35:12 +01:00
Colin Snover
a25246bebe
FULLPIPE: Remove unnecessary extra allocation for RNG
2017-11-18 22:35:12 +01:00
Colin Snover
a49b6648c8
FULLPIPE: Fix leaks of MGMSubItem
2017-11-18 22:35:12 +01:00
Colin Snover
f41074b930
FULLPIPE: Improve memory ownership in Motion
2017-11-18 22:35:12 +01:00
Colin Snover
cc905d7f9a
FULLPIPE: Make TODO labelled so it is picked up by tools
2017-11-18 22:35:12 +01:00
Colin Snover
0cc0b1932e
FULLPIPE: Fix memory leaks, ownership issues, and endianness issues in graphics code
2017-11-18 22:35:12 +01:00
Colin Snover
8e0c53de18
FULLPIPE: Fix whitespace errors
2017-11-18 22:35:12 +01:00
Colin Snover
88a2eaba93
FULLPIPE: Make dimensions/coordinate getters pure functions
2017-11-18 22:35:12 +01:00
Colin Snover
136223026e
FULLPIPE: Remove illegal C-style cast to incompatible type
2017-11-18 22:35:12 +01:00
Colin Snover
72a4292727
FULLPIPE: Improve memory safety and fix leaks in sound code
2017-11-18 22:35:12 +01:00
Colin Snover
8f1d76d261
FULLPIPE: Improve memory safety and typing of NGIArchive
2017-11-18 22:35:12 +01:00
Colin Snover
92f5718e2b
FULLPIPE: Fix illegal C-style cast to incompatible type
2017-11-18 22:35:12 +01:00
Bastien Bouclet
bd82345f0b
Merge pull request #1035 from bgK/require-64bits-integers
...
BUILD: Require 64bits integers
2017-10-25 19:17:11 +02:00
Colin Snover
432fd522d2
ENGINES: Remove default1x scaler flag
...
This flag is removed for a few reasons:
* Engines universally set this flag to true for widths > 320,
which made it redundant everywhere;
* This flag functioned primarily as a "force 1x scaler" flag,
since its behaviour was almost completely undocumented and users
would need to figure out that they'd need an explicit non-default
scaler set to get a scaler to operate at widths > 320;
* (Most importantly) engines should not be in the business of
deciding how the backend may choose to render its virtual screen.
The choice of rendering behaviour belongs to the user, and the
backend, in that order.
A nearby future commit restores the default1x scaler behaviour in
the SDL backend code for the moment, but in the future it is my
hope that there will be a better configuration UI to allow users
to specify how they want scaling to work for high resolutions.
2017-10-07 12:30:29 -05:00
Bastien Bouclet
fd19e2fc15
COMMON: Introduce a shared hash function for pointer types
2017-09-30 21:35:16 +02:00
Bastien Bouclet
55f46d3667
BUILD: Define pointer sized integer types and remove SCUMM_64BITS
2017-09-30 21:35:16 +02:00
Bastien Bouclet
9facbdecda
FULLPIPE: Fix leaking the save MemoryWriteStreamDynamic buffer
2017-09-22 07:06:20 +02:00
Willem Jan Palenstijn
848a601c90
FULLPIPE: Fix warning
2017-08-01 13:09:10 +02:00
Eugene Sandulenko
baf7c83e7d
FULLPIPE: Sanity check on data loading
2017-03-27 08:04:20 +02:00
Eugene Sandulenko
b8a07d38d5
FULLPIPE: Safer string management
2017-03-27 08:04:20 +02:00
Filippos Karapetis
b0b0971b3e
FULLPIPE: Plug one more memory leak in the Movement class destructor
2017-03-24 00:56:12 +02:00
Filippos Karapetis
a93c8c5d3e
Unify all string function parameters to be const Common::String &
...
Thanks to wjp for the suggestion
2017-03-24 00:56:11 +02:00
Filippos Karapetis
3e515890e8
FULLPIPE: Plug a memory leak in _dynamicPhases
...
Free the pixel data of each entry in the _dynamicPhases array before
emptying it
2017-03-22 23:05:38 +02:00
Filippos Karapetis
8bc03c87c5
FULLPIPE: Fix corruption in flipped bitmaps
...
The TODO in the code in question should be reviewed, but the call to
freePixelData() unconditionally deleted the original bitmap, which is
not correct
2017-03-22 23:02:52 +02:00
Filippos Karapetis
95c776e1eb
FULLPIPE: Refactor _pixels so that it's not part of the Bitmap class
2017-03-22 22:59:55 +02:00
Filippos Karapetis
808e465e7e
FULLPIPE: _data is unused in the Statics and DynamicPhase classes
2017-03-22 22:58:22 +02:00
Filippos Karapetis
f669aca3f2
FULLPIPE: Fix mismatched free() when deleting _bitmap
...
_bitmap is initialized with new, so it needs to be freed with delete,
not free()
2017-03-22 22:20:18 +02:00
Filippos Karapetis
af874d469e
FULLPIPE: Code optimization
...
Checking for an empty string is what the original code does, according
to sev, so the check for a string of size 1 was wrong
2017-03-22 22:17:36 +02:00