aboutsummaryrefslogtreecommitdiff
path: root/src/transport-widget.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-01-24 20:54:05 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-01-24 20:54:05 -0600
commit1e03cbb25bb86df7325d4909d9b3d5397b48e4cc (patch)
tree02c73c73b2fd8062d2a9206bd977aa9525c27ce7 /src/transport-widget.c
parentf174071dd8f98b298509d11f45b67dac77924599 (diff)
downloadayatana-indicator-sound-1e03cbb25bb86df7325d4909d9b3d5397b48e4cc.tar.gz
ayatana-indicator-sound-1e03cbb25bb86df7325d4909d9b3d5397b48e4cc.tar.bz2
ayatana-indicator-sound-1e03cbb25bb86df7325d4909d9b3d5397b48e4cc.zip
fix hashtable leak reported by valgrind
Diffstat (limited to 'src/transport-widget.c')
-rw-r--r--src/transport-widget.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/transport-widget.c b/src/transport-widget.c
index 2d1a7f2..08e4ba9 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -269,6 +269,13 @@ transport_widget_dispose (GObject *object)
}
}
#endif
+
+ TransportWidgetPrivate* priv = TRANSPORT_WIDGET_GET_PRIVATE(object);
+ if (priv->command_coordinates != NULL) {
+ g_hash_table_destroy (priv->command_coordinates);
+ priv->command_coordinates = NULL;
+ }
+
G_OBJECT_CLASS (transport_widget_parent_class)->dispose (object);
}