Fix warning of audio device property in free process 50/60950/2
authorHyunsoo, Park <hance.park@samsung.com>
Thu, 3 Mar 2016 06:10:27 +0000 (15:10 +0900)
committerHyunsoo, Park <hance.park@samsung.com>
Thu, 3 Mar 2016 06:21:03 +0000 (15:21 +0900)
Change-Id: I41e4e7ab4b6d4d40ef90c65a377342e8efafa2e2
Signed-off-by: Hyunsoo, Park <hance.park@samsung.com>
gst/rtsp-server/rtsp-media-factory-wfd.c

index 8cca5ec..60371b1 100644 (file)
@@ -502,12 +502,12 @@ _rtsp_media_factory_wfd_create_audio_capture_bin (GstRTSPMediaFactoryWFD *
 
   priv->audio_queue = aqueue;
   if (acodec) g_free (acodec);
-  if (gst_structure_free) gst_structure_free(audio_properties_name);
+  if (audio_properties_name) gst_structure_free(audio_properties_name);
   return TRUE;
 
 create_error:
   if (acodec) g_free (acodec);
-  if (gst_structure_free) gst_structure_free(audio_properties_name);
+  if (audio_properties_name) gst_structure_free(audio_properties_name);
   return FALSE;
 }