diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-01-24 20:54:05 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-01-24 20:54:05 -0600 |
commit | 1e03cbb25bb86df7325d4909d9b3d5397b48e4cc (patch) | |
tree | 02c73c73b2fd8062d2a9206bd977aa9525c27ce7 /src | |
parent | f174071dd8f98b298509d11f45b67dac77924599 (diff) | |
download | ayatana-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')
-rw-r--r-- | src/transport-widget.c | 7 |
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); } |