gnome-media r4163 - in trunk/gnome-volume-control: . src
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-media r4163 - in trunk/gnome-volume-control: . src
- Date: Mon, 26 Jan 2009 17:44:02 +0000 (UTC)
Author: hadess
Date: Mon Jan 26 17:44:02 2009
New Revision: 4163
URL: http://svn.gnome.org/viewvc/gnome-media?rev=4163&view=rev
Log:
2009-01-26 Bastien Nocera <hadess hadess net>
* src/gvc-level-bar.c (gvc_level_bar_finalize):
Remove any lingering timeouts when finalizing the object
Modified:
trunk/gnome-volume-control/ChangeLog
trunk/gnome-volume-control/src/gvc-level-bar.c
Modified: trunk/gnome-volume-control/src/gvc-level-bar.c
==============================================================================
--- trunk/gnome-volume-control/src/gvc-level-bar.c (original)
+++ trunk/gnome-volume-control/src/gvc-level-bar.c Mon Jan 26 17:44:02 2009
@@ -730,14 +730,18 @@
static void
gvc_level_bar_finalize (GObject *object)
{
- GvcLevelBar *level_bar;
+ GvcLevelBar *bar;
g_return_if_fail (object != NULL);
g_return_if_fail (GVC_IS_LEVEL_BAR (object));
- level_bar = GVC_LEVEL_BAR (object);
+ bar = GVC_LEVEL_BAR (object);
- g_return_if_fail (level_bar->priv != NULL);
+ if (bar->priv->max_peak_id > 0) {
+ g_source_remove (bar->priv->max_peak_id);
+ }
+
+ g_return_if_fail (bar->priv != NULL);
G_OBJECT_CLASS (gvc_level_bar_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]