memleak fix that I forgot to commit ~2 months ago.
authorMike Smith <msmith@xiph.org>
Sun, 9 Jun 2002 14:27:01 +0000 (14:27 +0000)
committerMike Smith <msmith@xiph.org>
Sun, 9 Jun 2002 14:27:01 +0000 (14:27 +0000)
svn path=/trunk/vorbis/; revision=3367

lib/time0.c

index b1ec84e..623826c 100644 (file)
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: time backend 0 (dummy)
- last mod: $Id: time0.c,v 1.13 2002/03/30 14:11:53 msmith Exp $
+ last mod: $Id: time0.c,v 1.14 2002/06/09 14:27:01 msmith Exp $
 
  ********************************************************************/
 
 static void time0_pack (vorbis_info_time *i,oggpack_buffer *opb){
 }
 static vorbis_info_time *time0_unpack (vorbis_info *vi,oggpack_buffer *opb){
-  return "";
-
+  /* We have to return non-NULL here, so this will do. */
+  return malloc(4);
 }
 static vorbis_info_time *time0_copy_info (vorbis_info_time *vi){
-  return "";
+  return NULL;
 }
 static vorbis_look_time *time0_look (vorbis_dsp_state *vd,vorbis_info_mode *mi,
                               vorbis_info_time *i){
-  return "";
+  return NULL;
 }
 static void time0_free_info(vorbis_info_time *i){
+  if(i)  
+    free(i);
 }
 static void time0_free_look(vorbis_look_time *i){
 }