Use g_mapped_file_unref()
- drop deprecated use of g_mapped_file_free() - bump glib version requirement
This commit is contained in:
@ -77,7 +77,7 @@ _gtk_icon_cache_unref (GtkIconCache *cache)
|
||||
g_print ("unmapping icon cache\n"));
|
||||
|
||||
if (cache->map)
|
||||
g_mapped_file_free (cache->map);
|
||||
g_mapped_file_unref (cache->map);
|
||||
g_free (cache);
|
||||
}
|
||||
}
|
||||
@ -135,7 +135,7 @@ _gtk_icon_cache_new_for_path (const gchar *path)
|
||||
{
|
||||
if (!_gtk_icon_cache_validate (&info))
|
||||
{
|
||||
g_mapped_file_free (map);
|
||||
g_mapped_file_unref (map);
|
||||
g_warning ("Icon cache '%s' is invalid\n", cache_filename);
|
||||
|
||||
goto done;
|
||||
|
||||
@ -1415,11 +1415,11 @@ validate_file (const gchar *file)
|
||||
|
||||
if (!_gtk_icon_cache_validate (&info))
|
||||
{
|
||||
g_mapped_file_free (map);
|
||||
g_mapped_file_unref (map);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
g_mapped_file_free (map);
|
||||
g_mapped_file_unref (map);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user