Add release codes for 'topbin' and 'edid_payload' 86/172486/2
authorHyunsoo Park <hance.park@samsung.com>
Wed, 14 Mar 2018 06:54:12 +0000 (15:54 +0900)
committerHyunsoo Park <hance.park@samsung.com>
Wed, 14 Mar 2018 10:20:35 +0000 (19:20 +0900)
In some cases, those are going out of scope without releasing.
So i added release codes.

Change-Id: Ia18b7a939f2651984d54b99047a583a92ae604e8
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
gst/rtsp-server/rtsp-client-wfd.c
gst/rtsp-server/rtsp-media-factory-uri.c

index 672e121..291e175 100644 (file)
@@ -1615,6 +1615,8 @@ handle_wfd_response (GstRTSPClient * client, GstRTSPContext * ctx)
             GST_WARNING_OBJECT (client, " edid invalid resolutions");
           }
         }
+        /* Release allocated memory */
+        g_free (edid_payload);
       }
 
       if (msg->content_protection) {
index 01f3f99..d2ee0cc 100644 (file)
@@ -640,6 +640,7 @@ no_uridecodebin:
   {
     g_critical ("can't create uridecodebin element");
     gst_object_unref (element);
+    gst_object_unref (topbin);
     return NULL;
   }
 }