summaryrefslogtreecommitdiffstats
path: root/src/software-dbus/LMI_SoftwareIdentityResourceProvider.c
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2014-04-16 18:22:05 +0200
committerPeter Schiffer <pschiffe@redhat.com>2014-04-17 14:06:13 +0200
commitbf8c0203b9c9b1b6c52606084448a222d19ab3ae (patch)
tree5c3ba3ff022b3b5a1ea52c38b916d278ae8690c8 /src/software-dbus/LMI_SoftwareIdentityResourceProvider.c
parent344131a6142cc3b52d8eec10f07ac21aefd4d5a0 (diff)
downloadopenlmi-providers-bf8c0203b9c9b1b6c52606084448a222d19ab3ae.tar.gz
openlmi-providers-bf8c0203b9c9b1b6c52606084448a222d19ab3ae.tar.xz
openlmi-providers-bf8c0203b9c9b1b6c52606084448a222d19ab3ae.zip
Software-dbus: refactor & cleanup
Diffstat (limited to 'src/software-dbus/LMI_SoftwareIdentityResourceProvider.c')
-rw-r--r--src/software-dbus/LMI_SoftwareIdentityResourceProvider.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/software-dbus/LMI_SoftwareIdentityResourceProvider.c b/src/software-dbus/LMI_SoftwareIdentityResourceProvider.c
index c92900e..c09b71d 100644
--- a/src/software-dbus/LMI_SoftwareIdentityResourceProvider.c
+++ b/src/software-dbus/LMI_SoftwareIdentityResourceProvider.c
@@ -136,14 +136,14 @@ static CMPIStatus LMI_SoftwareIdentityResourceEnumInstances(
done:
g_clear_error(&gerror);
- if (task) {
- g_object_unref(task);
+ if (array) {
+ g_ptr_array_unref(array);
}
if (results) {
g_object_unref(results);
}
- if (array) {
- g_ptr_array_unref(array);
+ if (task) {
+ g_object_unref(task);
}
if (repo_id) {
g_free(repo_id);