Skip to content
Snippets Groups Projects
Commit 031faf4f authored by Per Hedbor's avatar Per Hedbor
Browse files

Added Free() function to XResource class, used automatically for all allocated...

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
parent e1a0bf31
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,6 @@ class XResource ...@@ -21,7 +21,6 @@ class XResource
void Free() void Free()
{ {
object req = this_object()->FreeRequest(); object req = this_object()->FreeRequest();
werror("free "+id+"\n");
req->id = id; req->id = id;
display->send_request( req ); display->send_request( req );
} }
...@@ -424,7 +423,7 @@ class Window ...@@ -424,7 +423,7 @@ class Window
{ {
inherit Drawable; inherit Drawable;
int currentInputMask; int currentInputMask;
constant FreeRequest = lambda(){}; // FIXME!! function FreeRequest = lambda(){}; // FIXME!!
mapping(string:array(function)) event_callbacks = ([ ]); mapping(string:array(function)) event_callbacks = ([ ]);
int alt_gr, num_lock, shift, control, caps_lock; int alt_gr, num_lock, shift, control, caps_lock;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment