summaryrefslogtreecommitdiff
path: root/src/st/st-texture-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/st/st-texture-cache.c')
-rw-r--r--src/st/st-texture-cache.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c
index a9bf38889..ac4db8f86 100644
--- a/src/st/st-texture-cache.c
+++ b/src/st/st-texture-cache.c
@@ -353,7 +353,7 @@ texture_load_data_free (gpointer p)
if (data->actors)
g_slist_free_full (data->actors, (GDestroyNotify) g_object_unref);
- g_slice_free (AsyncTextureLoadData, data);
+ g_free (data);
}
/**
@@ -807,7 +807,7 @@ st_texture_cache_free_bind (gpointer data)
StTextureCachePropertyBind *bind = data;
if (bind->weakref_active)
g_object_weak_unref (G_OBJECT (bind->image), st_texture_cache_bind_weak_notify, bind);
- g_slice_free (StTextureCachePropertyBind, bind);
+ g_free (bind);
}
/**
@@ -833,7 +833,7 @@ st_texture_cache_bind_cairo_surface_property (StTextureCache *cache,
gchar *notify_key;
StTextureCachePropertyBind *bind;
- bind = g_slice_new0 (StTextureCachePropertyBind);
+ bind = g_new0 (StTextureCachePropertyBind, 1);
bind->cache = cache;
bind->source = object;
@@ -930,7 +930,7 @@ ensure_request (StTextureCache *cache,
if (pending == NULL)
{
/* Not cached and no pending request, create it */
- *request = g_slice_new0 (AsyncTextureLoadData);
+ *request = g_new0 (AsyncTextureLoadData, 1);
if (policy != ST_TEXTURE_CACHE_POLICY_NONE)
g_hash_table_insert (cache->priv->outstanding_requests, g_strdup (key), *request);
}
@@ -1192,7 +1192,7 @@ on_data_destroy (gpointer data)
g_object_unref (d->gfile);
g_object_unref (d->actor);
g_object_unref (d->cancellable);
- g_slice_free (AsyncImageData, d);
+ g_free (d);
}
static void
@@ -1357,7 +1357,7 @@ st_texture_cache_load_sliced_image (StTextureCache *cache,
g_assert (paint_scale > 0);
g_assert (resource_scale > 0);
- data = g_slice_new0 (AsyncImageData);
+ data = g_new0 (AsyncImageData, 1);
data->grid_width = grid_width;
data->grid_height = grid_height;
data->paint_scale = paint_scale;