ipcpipeline: Don't leak structure
authorEdward Hervey <edward@centricular.com>
Thu, 23 Nov 2017 07:09:36 +0000 (08:09 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 23 Nov 2017 07:09:36 +0000 (08:09 +0100)
CID #1416131

sys/ipcpipeline/gstipcpipelinecomm.c

index 8cecfba..5ba913b 100644 (file)
@@ -706,6 +706,8 @@ gst_ipc_pipeline_comm_read_buffer (GstIpcPipelineComm * comm, guint32 size)
     } else {
       GST_WARNING_OBJECT (comm->element, "Unsupported meta: %s",
           g_type_name (api));
+      if (structure)
+        gst_structure_free (structure);
     }
 
 #undef READ_FIELD