summaryrefslogtreecommitdiffstats
path: root/src/software-dbus/LMI_SoftwareIdentityResourceProvider.c
diff options
context:
space:
mode:
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);