diff options
author | David Zeuthen <davidz@redhat.com> | 2010-10-08 17:33:12 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2010-10-08 17:33:12 -0400 |
commit | 916c97caff130fae35d3f04d2cdcd70b9520f3d1 (patch) | |
tree | 37d976bf7ef3f1d383eda538ad9da2dfe39a909f | |
parent | 2251f476170b393eaa3c5bd3be19cb759a1adb8d (diff) |
Avoid leaking a GUdevDevice when update state for Luks items
Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r-- | stc/stcitem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stc/stcitem.c b/stc/stcitem.c index 52f3aa2..6c7a154 100644 --- a/stc/stcitem.c +++ b/stc/stcitem.c @@ -789,7 +789,7 @@ _stc_item_luks_get_devices (StcItem *item, } if (out_unlocked_device != NULL) - *out_unlocked_device = unlocked_device != NULL ? g_object_ref (unlocked_device) : NULL; + *out_unlocked_device = unlocked_device != NULL ? unlocked_device : NULL; else if (unlocked_device != NULL) g_object_unref (unlocked_device); |