Use XFree to release X11 allocated data
authorGabriel Jacobo <gabomdq@gmail.com>
Fri, 01 Mar 2013 13:28:07 -0300
changeset 69419bb475091e51
parent 6940 142dcc136188
child 6947 18ccf3e4921d
Use XFree to release X11 allocated data
src/video/x11/SDL_x11modes.c
     1.1 --- a/src/video/x11/SDL_x11modes.c	Thu Feb 28 22:20:25 2013 -0800
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Fri Mar 01 13:28:07 2013 -0300
     1.3 @@ -593,13 +593,13 @@
     1.4                                  SDL_strlcpy(display_name, info->dsc_product_name, sizeof(display_name));
     1.5                                  free(info);
     1.6                              }
     1.7 -                            SDL_free(prop);
     1.8 +                            XFree(prop);
     1.9                          }
    1.10                          break;
    1.11                      }
    1.12                  }
    1.13                  if (props) {
    1.14 -                    SDL_free(props);
    1.15 +                    XFree(props);
    1.16                  }
    1.17  
    1.18                  if (*display_name && inches) {