aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sword2/driver/driver96.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sword2/driver/driver96.h b/sword2/driver/driver96.h
index 8dd25de649..3adb16cacd 100644
--- a/sword2/driver/driver96.h
+++ b/sword2/driver/driver96.h
@@ -1265,15 +1265,15 @@ public:
_width = width;
_height = height;
_pixels = (byte *) calloc(_width, _height);
- };
-
- ~Surface() {
- free(_pixels);
- };
+ }
void clear();
void blit(Surface *s, ScummVM::Rect *r);
void blit(Surface *s, ScummVM::Rect *r, ScummVM::Rect *clip_rect);
+
+ ~Surface() {
+ free(_pixels);
+ }
};
//