|
|
1.1 root 1: /* $Header: mfbscrclse.c,v 1.1 87/09/02 00:28:53 toddb Exp $ */
2: /***********************************************************
3: Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
4: and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
5:
6: All Rights Reserved
7:
8: Permission to use, copy, modify, and distribute this software and its
9: documentation for any purpose and without fee is hereby granted,
10: provided that the above copyright notice appear in all copies and that
11: both that copyright notice and this permission notice appear in
12: supporting documentation, and that the names of Digital or MIT not be
13: used in advertising or publicity pertaining to distribution of the
14: software without specific, written prior permission.
15:
16: DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
17: ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
18: DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
19: ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20: WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
21: ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
22: SOFTWARE.
23:
24: ******************************************************************/
25:
26: #include "scrnintstr.h"
27:
28: void
29: mfbScreenClose(pScreen)
30: register ScreenPtr pScreen;
31: {
32:
33: if (pScreen->allowedDepths)
34: {
35: if (pScreen->allowedDepths->vids)
36: Xfree(pScreen->allowedDepths->vids);
37:
38: Xfree(pScreen->allowedDepths);
39: }
40:
41: /* pScreen->visuals does not need to be freed here, since it is added as
42: a resource in "mfbScreenInit" and is freed with the rest of the
43: resources. */
44:
45: if(pScreen->devPrivate)
46: Xfree(pScreen->devPrivate);
47:
48: /* Does pScreen->devPrivate->devPrivate have to be freed since it's a bitmap?
49: but I don't know where or how it is allocated. It may be static. */
50:
51: return;
52: }
53:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.