summaryrefslogtreecommitdiff
path: root/exa/exa_mixed.c
diff options
context:
space:
mode:
Diffstat (limited to 'exa/exa_mixed.c')
-rw-r--r--exa/exa_mixed.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/exa/exa_mixed.c b/exa/exa_mixed.c
index 7e02abc61..47fa6d448 100644
--- a/exa/exa_mixed.c
+++ b/exa/exa_mixed.c
@@ -81,17 +81,10 @@ exaCreatePixmap_mixed(ScreenPtr pScreen, int w, int h, int depth,
datasize = h * paddedWidth;
- /* Allocate temporary pixmap. */
- pExaPixmap->sys_ptr = malloc(datasize);
+ /* We will allocate the system pixmap later if needed. */
+ pExaPixmap->sys_ptr = NULL;
pExaPixmap->sys_pitch = paddedWidth;
- if (!pExaPixmap->sys_ptr) {
- swap(pExaScr, pScreen, DestroyPixmap);
- pScreen->DestroyPixmap (pPixmap);
- swap(pExaScr, pScreen, DestroyPixmap);
- return NULL;
- }
-
pExaPixmap->area = NULL;
pExaPixmap->offscreen = FALSE;
pExaPixmap->score = EXA_PIXMAP_SCORE_INIT;