ekiga r7104 - in trunk: . lib/engine/components/gstreamer
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r7104 - in trunk: . lib/engine/components/gstreamer
- Date: Fri, 26 Sep 2008 18:01:40 +0000 (UTC)
Author: jpuydt
Date: Fri Sep 26 18:01:39 2008
New Revision: 7104
URL: http://svn.gnome.org/viewvc/ekiga?rev=7104&view=rev
Log:
Fixed some leaks
Modified:
trunk/ChangeLog
trunk/lib/engine/components/gstreamer/gst-audioinput.cpp
trunk/lib/engine/components/gstreamer/gst-videoinput.cpp
Modified: trunk/lib/engine/components/gstreamer/gst-audioinput.cpp
==============================================================================
--- trunk/lib/engine/components/gstreamer/gst-audioinput.cpp (original)
+++ trunk/lib/engine/components/gstreamer/gst-audioinput.cpp Fri Sep 26 18:01:39 2008
@@ -136,6 +136,7 @@
NULL);
settings.volume = (unsigned)(255*val);
settings.modifyable = true;
+ g_object_unref (volume);
} else {
settings.modifyable = false;
@@ -225,6 +226,7 @@
g_object_set (G_OBJECT (volume),
"volume", valf,
NULL);
+ g_object_unref (volume);
}
}
@@ -294,6 +296,7 @@
g_free (name);
g_free (descr);
}
+ g_value_array_free (array);
}
gst_element_set_state (elt, GST_STATE_NULL);
Modified: trunk/lib/engine/components/gstreamer/gst-videoinput.cpp
==============================================================================
--- trunk/lib/engine/components/gstreamer/gst-videoinput.cpp (original)
+++ trunk/lib/engine/components/gstreamer/gst-videoinput.cpp Fri Sep 26 18:01:39 2008
@@ -134,6 +134,7 @@
if (current != GST_STATE_PLAYING) {
+ gst_element_set_state (pipeline, GST_STATE_NULL);
gst_object_unref (GST_OBJECT (pipeline));
pipeline = NULL;
result = false;
@@ -279,6 +280,7 @@
g_free (descr);
}
+ g_value_array_free (array);
gst_element_set_state (elt, GST_STATE_NULL);
}
}
@@ -343,6 +345,7 @@
g_free (descr);
}
+ g_value_array_free (array);
gst_element_set_state (elt, GST_STATE_NULL);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]