ext/gnomevfs/gstgnomevfssrc.c: actually free the URI string

Original commit message from CVS:
* ext/gnomevfs/gstgnomevfssrc.c: (gst_gnomevfssrc_dispose):
actually free the URI string
* ext/mad/gstid3tag.c: (gst_id3_tag_src_event):
compute offset correctly when passing discont events
* ext/mad/gstid3tag.c: (gst_id3_tag_handle_event):
don't leak discont events
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_video_caps):
add some missing breaks so caps aren't copied randomly
* gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_get_video_stream):
if we realloc memory, we better use it
This commit is contained in:
Benjamin Otte 2004-04-06 23:46:00 +00:00
parent 91cf19010d
commit e6cf95ecfe
2 changed files with 18 additions and 0 deletions

View file

@ -1,3 +1,16 @@
2004-04-07 Benjamin Otte <otte@gnome.org>
* ext/gnomevfs/gstgnomevfssrc.c: (gst_gnomevfssrc_dispose):
actually free the URI string
* ext/mad/gstid3tag.c: (gst_id3_tag_src_event):
compute offset correctly when passing discont events
* ext/mad/gstid3tag.c: (gst_id3_tag_handle_event):
don't leak discont events
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_video_caps):
add some missing breaks so caps aren't copied randomly
* gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_get_video_stream):
if we realloc memory, we better use it
2004-04-06 Benjamin Otte <in7y118@public.uni-hamburg.de> 2004-04-06 Benjamin Otte <in7y118@public.uni-hamburg.de>
* ext/mad/gstmad.c: (normal_seek): * ext/mad/gstmad.c: (normal_seek):

View file

@ -368,6 +368,8 @@ gst_gnomevfssrc_init (GstGnomeVFSSrc * gnomevfssrc)
static void static void
gst_gnomevfssrc_dispose (GObject * object) gst_gnomevfssrc_dispose (GObject * object)
{ {
GstGnomeVFSSrc *src = GST_GNOMEVFSSRC (object);
g_static_mutex_lock (&count_lock); g_static_mutex_lock (&count_lock);
ref_count--; ref_count--;
if (ref_count == 0 && vfs_owner) { if (ref_count == 0 && vfs_owner) {
@ -377,6 +379,9 @@ gst_gnomevfssrc_dispose (GObject * object)
} }
g_static_mutex_unlock (&count_lock); g_static_mutex_unlock (&count_lock);
g_free (src->filename);
src->filename = NULL;
G_OBJECT_CLASS (parent_class)->dispose (object); G_OBJECT_CLASS (parent_class)->dispose (object);
} }