Commit 014ce151 authored by Sebastien Cote's avatar Sebastien Cote Committed by Tim-Philipp Müller
Browse files

gst-libs/gst/rtp/gstbasertppayload.c: Fix two small memory leaks (#361456).

Original commit message from CVS:
Patch by: Sebastien Cote  <sebas642 at yahoo.ca>
* gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_init),
(gst_basertppayload_finalize):
Fix two small memory leaks (#361456).
parent 56276ba8
2006-10-12 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Sebastien Cote <sebas642 at yahoo.ca>
* gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_init),
(gst_basertppayload_finalize):
Fix two small memory leaks (#361456).
2006-10-10 Julien MOUTTE <julien@moutte.net>
 
* tests/examples/seek/seek.c: (do_seek),
......@@ -202,6 +202,9 @@ gst_basertppayload_init (GstBaseRTPPayload * basertppayload, gpointer g_class)
basertppayload->ts_offset = DEFAULT_TIMESTAMP_OFFSET;
basertppayload->max_ptime = DEFAULT_MAX_PTIME;
basertppayload->media = NULL;
basertppayload->encoding_name = NULL;
basertppayload->clock_rate = 0;
}
......@@ -219,6 +222,11 @@ gst_basertppayload_finalize (GObject * object)
g_rand_free (basertppayload->ts_rand);
basertppayload->ts_rand = NULL;
g_free (basertppayload->media);
basertppayload->media = NULL;
g_free (basertppayload->encoding_name);
basertppayload->encoding_name = NULL;
G_OBJECT_CLASS (parent_class)->finalize (object);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment