diff options
Diffstat (limited to 'libXext/src/XEVI.c')
-rw-r--r-- | libXext/src/XEVI.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libXext/src/XEVI.c b/libXext/src/XEVI.c index 6d77fdf10..c9b172c41 100644 --- a/libXext/src/XEVI.c +++ b/libXext/src/XEVI.c @@ -183,8 +183,10 @@ Status XeviGetVisualInfo( _XEatDataWords(dpy, rep.length); UnlockDisplay(dpy); SyncHandle(); - if (evi_return) - Xfree(evi_return); + if (*evi_return) { + Xfree(*evi_return); + *evi_return = NULL; + } if (temp_xInfo) Xfree(temp_xInfo); if (temp_conflict) |