diff options
Diffstat (limited to 'glx')
-rw-r--r-- | glx/vndcmds.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/glx/vndcmds.c b/glx/vndcmds.c index d6d8719e1..d1e088973 100644 --- a/glx/vndcmds.c +++ b/glx/vndcmds.c @@ -165,9 +165,6 @@ static int CommonLoseCurrent(ClientPtr client, GlxContextTagInfo *tagInfo) tagInfo->tag, // No old context tag, None, None, None, 0); - if (ret == Success) { - GlxFreeContextTag(tagInfo); - } return ret; } @@ -259,7 +256,6 @@ static int CommonMakeCurrent(ClientPtr client, if (ret != Success) { return ret; } - oldTag = NULL; } if (newVendor != NULL) { @@ -270,6 +266,9 @@ static int CommonMakeCurrent(ClientPtr client, } else { reply.contextTag = 0; } + + GlxFreeContextTag(oldTag); + oldTag = NULL; } reply.contextTag = GlxCheckSwap(client, reply.contextTag); |