summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@gnome.org>2012-04-03 12:28:27 +0200
committerMartin Pitt <martinpitt@gnome.org>2012-04-03 12:28:27 +0200
commit1bb2b11b24b8538275705533c15160afee0176e2 (patch)
tree3b2f477ae34e50acc4f7daf18305519f5f11982c
parent2c02598806425bf60244d60f45c578e23bf08152 (diff)
downloadupower-1bb2b11b24b8538275705533c15160afee0176e2.tar.gz
Fix crash in up_device_csr_finalize()
Commit 46f1c7f0283 has a typo which prevents the fix from actually working. https://launchpad.net/bugs/972300
-rw-r--r--src/linux/up-device-csr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/up-device-csr.c b/src/linux/up-device-csr.c
index b4b007f..b39243e 100644
--- a/src/linux/up-device-csr.c
+++ b/src/linux/up-device-csr.c
@@ -323,7 +323,7 @@ up_device_csr_finalize (GObject *object)
csr = UP_DEVICE_CSR (object);
g_return_if_fail (csr->priv != NULL);
- if (csr->priv->ctx != NULL);
+ if (csr->priv->ctx != NULL)
libusb_exit (csr->priv->ctx);
if (csr->priv->poll_timer_id > 0)
g_source_remove (csr->priv->poll_timer_id);