diff options
Diffstat (limited to 'afb/afbpixmap.c')
-rw-r--r-- | afb/afbpixmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/afb/afbpixmap.c b/afb/afbpixmap.c index d15d86114..ad591a1af 100644 --- a/afb/afbpixmap.c +++ b/afb/afbpixmap.c @@ -105,6 +105,7 @@ afbCreatePixmap(pScreen, width, height, depth, usage_hint) pPixmap->refcnt = 1; pPixmap->devPrivate.ptr = datasize ? (pointer)((char *)pPixmap + pScreen->totalPixmapSize) : NULL; + pPixmap->usage_hint = usage_hint; return(pPixmap); } @@ -114,6 +115,7 @@ afbDestroyPixmap(pPixmap) { if(--pPixmap->refcnt) return(TRUE); + dixFreePrivates(pPixmap->devPrivates); xfree(pPixmap); return(TRUE); } |