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:
Sebastien Cote 2006-10-12 19:09:06 +00:00 committed by Tim-Philipp Müller
parent 56276ba82d
commit 014ce1511c
2 changed files with 16 additions and 0 deletions

View file

@ -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> 2006-10-10 Julien MOUTTE <julien@moutte.net>
* tests/examples/seek/seek.c: (do_seek), * tests/examples/seek/seek.c: (do_seek),

View file

@ -202,6 +202,9 @@ gst_basertppayload_init (GstBaseRTPPayload * basertppayload, gpointer g_class)
basertppayload->ts_offset = DEFAULT_TIMESTAMP_OFFSET; basertppayload->ts_offset = DEFAULT_TIMESTAMP_OFFSET;
basertppayload->max_ptime = DEFAULT_MAX_PTIME; basertppayload->max_ptime = DEFAULT_MAX_PTIME;
basertppayload->media = NULL;
basertppayload->encoding_name = NULL;
basertppayload->clock_rate = 0; basertppayload->clock_rate = 0;
} }
@ -219,6 +222,11 @@ gst_basertppayload_finalize (GObject * object)
g_rand_free (basertppayload->ts_rand); g_rand_free (basertppayload->ts_rand);
basertppayload->ts_rand = NULL; 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); G_OBJECT_CLASS (parent_class)->finalize (object);
} }