Przeglądaj źródła

glx: zero out drawable structs after allocation

tags/mesa-7.9-rc1
Kristian Høgsberg 15 lat temu
rodzic
commit
6393a33944
3 zmienionych plików z 3 dodań i 0 usunięć
  1. 1
    0
      src/glx/dri2_glx.c
  2. 1
    0
      src/glx/dri_glx.c
  3. 1
    0
      src/glx/drisw_glx.c

+ 1
- 0
src/glx/dri2_glx.c Wyświetl plik

@@ -224,6 +224,7 @@ dri2CreateDrawable(__GLXscreenConfigs *base, XID xDrawable,
if (!pdraw)
return NULL;

memset(pdraw, 0, sizeof *pdraw);
pdraw->base.destroyDrawable = dri2DestroyDrawable;
pdraw->base.xDrawable = xDrawable;
pdraw->base.drawable = drawable;

+ 1
- 0
src/glx/dri_glx.c Wyświetl plik

@@ -633,6 +633,7 @@ driCreateDrawable(__GLXscreenConfigs *base,
if (!pdp)
return NULL;

memset(pdp, 0, sizeof *pdp);
pdp->base.drawable = drawable;
pdp->base.psc = &psc->base;


+ 1
- 0
src/glx/drisw_glx.c Wyświetl plik

@@ -362,6 +362,7 @@ driCreateDrawable(__GLXscreenConfigs *base, XID xDrawable,
if (!pdp)
return NULL;

memset(pdp, 0, sizeof *pdp);
pdp->base.xDrawable = xDrawable;
pdp->base.drawable = drawable;
pdp->base.psc = &psc->base;

Ładowanie…
Anuluj
Zapisz