mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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).
This commit is contained in:
parent
56276ba82d
commit
014ce1511c
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue