src/file/SDL_rwops.c
changeset 7070 65df21723f58
parent 7037 3fedf1f25b94
child 7191 75360622e65f
child 8464 a2a909304cfe
equal deleted inserted replaced
7068:1fa727447de3 7070:65df21723f58
   626     SDL_RWops *area;
   626     SDL_RWops *area;
   627 
   627 
   628     area = (SDL_RWops *) SDL_malloc(sizeof *area);
   628     area = (SDL_RWops *) SDL_malloc(sizeof *area);
   629     if (area == NULL) {
   629     if (area == NULL) {
   630         SDL_OutOfMemory();
   630         SDL_OutOfMemory();
   631     }
   631     } else {
   632     area->type = SDL_RWOPS_UNKNOWN;
   632         area->type = SDL_RWOPS_UNKNOWN;
       
   633     }
   633     return (area);
   634     return (area);
   634 }
   635 }
   635 
   636 
   636 void
   637 void
   637 SDL_FreeRW(SDL_RWops * area)
   638 SDL_FreeRW(SDL_RWops * area)