Mercurial > SDL_sound_CoreAudio
comparison extra_rwops.c @ 83:2b5ba7f33840
Stopped using SDL_OutOfMemory().
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 25 Sep 2001 21:25:14 +0000 |
parents | dca15bb29d35 |
children | 47cc2de2ae36 |
comparison
equal
deleted
inserted
replaced
82:7505dcf8d3b7 | 83:2b5ba7f33840 |
---|---|
108 { | 108 { |
109 RWRefCounterData *data; | 109 RWRefCounterData *data; |
110 data = (RWRefCounterData *) malloc(sizeof (RWRefCounterData)); | 110 data = (RWRefCounterData *) malloc(sizeof (RWRefCounterData)); |
111 if (data == NULL) | 111 if (data == NULL) |
112 { | 112 { |
113 SDL_OutOfMemory(); | 113 SDL_SetError("Out of memory."); |
114 SDL_FreeRW(retval); | 114 SDL_FreeRW(retval); |
115 retval = NULL; | 115 retval = NULL; |
116 } /* if */ | 116 } /* if */ |
117 else | 117 else |
118 { | 118 { |