Use XFree to release X11 allocated data
This commit is contained in:
parent
7c3f6dcb24
commit
afdba27236
1 changed files with 2 additions and 2 deletions
|
@ -593,13 +593,13 @@ X11_InitModes(_THIS)
|
|||
SDL_strlcpy(display_name, info->dsc_product_name, sizeof(display_name));
|
||||
free(info);
|
||||
}
|
||||
SDL_free(prop);
|
||||
XFree(prop);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (props) {
|
||||
SDL_free(props);
|
||||
XFree(props);
|
||||
}
|
||||
|
||||
if (*display_name && inches) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue