Commit fd35fe04 authored by Felix Abecassis's avatar Felix Abecassis Committed by Jean-Baptiste Kempf

DirectDraw: do not save a string that is deallocated immediately after.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent bb964cd5
...@@ -1424,8 +1424,8 @@ static BOOL WINAPI DirectXEnumCallback2(GUID *guid, LPTSTR desc, ...@@ -1424,8 +1424,8 @@ static BOOL WINAPI DirectXEnumCallback2(GUID *guid, LPTSTR desc,
ctx->values = xrealloc(ctx->values, (ctx->count + 1) * sizeof(char *)); ctx->values = xrealloc(ctx->values, (ctx->count + 1) * sizeof(char *));
ctx->descs = xrealloc(ctx->descs, (ctx->count + 1) * sizeof(char *)); ctx->descs = xrealloc(ctx->descs, (ctx->count + 1) * sizeof(char *));
ctx->values[ctx->count] = psz_drivername; ctx->values[ctx->count] = strdup(psz_drivername);
ctx->descs[ctx->count] = psz_drivername; ctx->descs[ctx->count] = strdup(psz_drivername);
ctx->count++; ctx->count++;
free(psz_drivername); free(psz_drivername);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment