mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
clapper: Fix missing unref of mapped file
In case where enhancer plugin version did not match an unref was missing of read file.
This commit is contained in:
@@ -345,8 +345,10 @@ clapper_enhancer_proxy_fill_from_cache (ClapperEnhancerProxy *self)
|
||||
}
|
||||
|
||||
/* Plugin version check */
|
||||
if (g_strcmp0 (clapper_cache_read_string (&data), self->version) != 0)
|
||||
if (g_strcmp0 (clapper_cache_read_string (&data), self->version) != 0) {
|
||||
g_mapped_file_unref (mapped_file);
|
||||
return FALSE; // not an error
|
||||
}
|
||||
|
||||
/* Restore Interfaces */
|
||||
if ((self->n_ifaces = clapper_cache_read_uint (&data)) > 0) {
|
||||
|
Reference in New Issue
Block a user