mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 00:56:24 -05:00
Use XFree to release X11 allocated data
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user