From 031faf4f5fec227eab286042981bc5c18c9ac615 Mon Sep 17 00:00:00 2001 From: Per Hedbor <ph@opera.com> Date: Thu, 12 Feb 1998 09:01:24 +0100 Subject: [PATCH] Added Free() function to XResource class, used automatically for all allocated objects when they are destructed. Rev: lib/modules/Protocols.pmod/X.pmod/Types.pmod:1.25 --- lib/modules/Protocols.pmod/X.pmod/Types.pmod | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/modules/Protocols.pmod/X.pmod/Types.pmod b/lib/modules/Protocols.pmod/X.pmod/Types.pmod index 49f8a41a95..0901ed2f28 100644 --- a/lib/modules/Protocols.pmod/X.pmod/Types.pmod +++ b/lib/modules/Protocols.pmod/X.pmod/Types.pmod @@ -21,7 +21,6 @@ class XResource void Free() { object req = this_object()->FreeRequest(); - werror("free "+id+"\n"); req->id = id; display->send_request( req ); } @@ -424,7 +423,7 @@ class Window { inherit Drawable; int currentInputMask; - constant FreeRequest = lambda(){}; // FIXME!! + function FreeRequest = lambda(){}; // FIXME!! mapping(string:array(function)) event_callbacks = ([ ]); int alt_gr, num_lock, shift, control, caps_lock; -- GitLab