Use g_mapped_file_unref()

- drop deprecated use of g_mapped_file_free()
  - bump glib version requirement
This commit is contained in:
Ryan Lortie
2009-06-18 15:11:57 -04:00
parent 3c75004474
commit 6fe357965a
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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;
}