From 5d58b428ea134d6752fefbd1f0d0a50d3a378056 Mon Sep 17 00:00:00 2001 From: Raymond Date: Wed, 16 Sep 2009 21:55:04 +0000 Subject: [PATCH] Removed wrong exceptions. git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@67 3f818213-9676-44b0-a9b4-5e4c4e03d09d --- Units/MMLCore/window.pas | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Units/MMLCore/window.pas b/Units/MMLCore/window.pas index e4a5b4f..6bfdbe5 100644 --- a/Units/MMLCore/window.pas +++ b/Units/MMLCore/window.pas @@ -242,17 +242,8 @@ end; procedure TMWindow.FreeReturnData; begin - if Self.TargetMode <> w_XWindow then - begin - raise Exception.createFMT('FreeReturnData - Image data must only ' + - ' be freed with XGetImage', []); - exit; - end; - if FreezeState then - begin - raise Exception.createFMT('FreeReturnData called when Freeze = True', []); - exit; - end; + if (Self.TargetMode <> w_XWindow) or FreezeState then + Exit; {$IFDEF LINUX} if not Self.XImageFreed then begin