mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
registrybackend: close the key only if successfully opened
This commit is contained in:
parent
bf3f827ca1
commit
5cc997f7c4
@ -1281,8 +1281,9 @@ registry_cache_update (GRegistryBackend *self,
|
||||
n_watches, changes);
|
||||
child_item = subkey_node->data;
|
||||
child_item->touched = TRUE;
|
||||
|
||||
RegCloseKey (hsubpath);
|
||||
}
|
||||
RegCloseKey (hsubpath);
|
||||
}
|
||||
|
||||
if (result != ERROR_NO_MORE_ITEMS)
|
||||
|
Loading…
Reference in New Issue
Block a user