changeset 19460:4553637b709b

Avoid crash if initialization failed.
author reimar
date Sun, 20 Aug 2006 11:50:29 +0000
parents 6dad4b1efb82
children 0d191b783ed1
files stream/freesdp/common.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/freesdp/common.c	Sun Aug 20 11:47:33 2006 +0000
+++ b/stream/freesdp/common.c	Sun Aug 20 11:50:29 2006 +0000
@@ -166,6 +166,7 @@
 
   for (i = 0; i < dsc->media_announcements_count; i++)
   {
+    if (!dsc->media_announcements[i]) continue;
     for (j = 0; j < dsc->media_announcements[i]->formats_count; j++)
       safe_free (dsc->media_announcements[i]->formats[j]);
     safe_free (dsc->media_announcements[i]->formats);