From 1af510f8d54ddeb58f1c8e6db3f4fe45d21dd026 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 24 Sep 2007 10:53:37 +0000 Subject: Massive leak fixing, plus code cleanups. Original commit message from CVS: * ext/audioresample/gstaudioresample.c: * ext/x264/gstx264enc.c: * gst/dvdspu/gstdvdspu.c: * gst/dvdspu/gstdvdspu.h: * gst/festival/gstfestival.c: * gst/h264parse/gsth264parse.c: * gst/mpegtsparse/mpegtspacketizer.c: * gst/mpegtsparse/mpegtsparse.c: * gst/multifile/gstmultifilesink.c: * gst/multifile/gstmultifilesrc.c: * gst/nuvdemux/gstnuvdemux.c: * sys/dshowsrcwrapper/gstdshowaudiosrc.c: * sys/dshowsrcwrapper/gstdshowvideosrc.c: * sys/vcd/vcdsrc.c: Massive leak fixing, plus code cleanups. --- gst/mpegtsparse/mpegtspacketizer.c | 6 ++---- gst/mpegtsparse/mpegtsparse.c | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'gst/mpegtsparse') diff --git a/gst/mpegtsparse/mpegtspacketizer.c b/gst/mpegtsparse/mpegtspacketizer.c index 7e51f1eb..1530c10d 100644 --- a/gst/mpegtsparse/mpegtspacketizer.c +++ b/gst/mpegtsparse/mpegtspacketizer.c @@ -103,8 +103,7 @@ mpegts_packetizer_dispose (GObject * object) packetizer->disposed = TRUE; } - if (G_OBJECT_CLASS (mpegts_packetizer_parent_class)->dispose) - G_OBJECT_CLASS (mpegts_packetizer_parent_class)->dispose (object); + G_OBJECT_CLASS (mpegts_packetizer_parent_class)->dispose (object); } static gboolean @@ -127,8 +126,7 @@ mpegts_packetizer_finalize (GObject * object) stream_foreach_remove, packetizer); g_hash_table_destroy (packetizer->streams); - if (G_OBJECT_CLASS (mpegts_packetizer_parent_class)->finalize) - G_OBJECT_CLASS (mpegts_packetizer_parent_class)->finalize (object); + G_OBJECT_CLASS (mpegts_packetizer_parent_class)->finalize (object); } static gboolean diff --git a/gst/mpegtsparse/mpegtsparse.c b/gst/mpegtsparse/mpegtsparse.c index 13ba609e..0d0a4232 100644 --- a/gst/mpegtsparse/mpegtsparse.c +++ b/gst/mpegtsparse/mpegtsparse.c @@ -241,8 +241,7 @@ mpegts_parse_dispose (GObject * object) parse->disposed = TRUE; } - if (G_OBJECT_CLASS (parent_class)->dispose) - G_OBJECT_CLASS (parent_class)->dispose (object); + G_OBJECT_CLASS (parent_class)->dispose (object); } static void @@ -256,8 +255,7 @@ mpegts_parse_finalize (GObject * object) g_hash_table_destroy (parse->programs); g_hash_table_destroy (parse->psi_pids); - if (G_OBJECT_CLASS (parent_class)->finalize) - G_OBJECT_CLASS (parent_class)->finalize (object); + G_OBJECT_CLASS (parent_class)->finalize (object); } static void -- cgit v1.2.1