summaryrefslogtreecommitdiff
path: root/media/libtheora/lib/internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'media/libtheora/lib/internal.c')
-rw-r--r--media/libtheora/lib/internal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/libtheora/lib/internal.c b/media/libtheora/lib/internal.c
index afbb6efae7..1b2611da15 100644
--- a/media/libtheora/lib/internal.c
+++ b/media/libtheora/lib/internal.c
@@ -11,7 +11,7 @@
********************************************************************
function:
- last mod: $Id$
+ last mod: $Id: internal.c 17506 2010-10-13 02:52:41Z tterribe $
********************************************************************/
@@ -131,6 +131,7 @@ void **oc_malloc_2d(size_t _height,size_t _width,size_t _sz){
datsz=rowsz*_height;
/*Alloc array and row pointers.*/
ret=(char *)_ogg_malloc(datsz+colsz);
+ if(ret==NULL)return NULL;
/*Initialize the array.*/
if(ret!=NULL){
size_t i;
@@ -153,6 +154,7 @@ void **oc_calloc_2d(size_t _height,size_t _width,size_t _sz){
datsz=rowsz*_height;
/*Alloc array and row pointers.*/
ret=(char *)_ogg_calloc(datsz+colsz,1);
+ if(ret==NULL)return NULL;
/*Initialize the array.*/
if(ret!=NULL){
size_t i;