Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Use XFree to release X11 allocated data
Browse files Browse the repository at this point in the history
  • Loading branch information
gabomdq committed Mar 1, 2013
1 parent 25944df commit 7481ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/x11/SDL_x11modes.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 7481ef3

Please sign in to comment.