mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
background: don't save pixbuf in user data
https://bugzilla.gnome.org/show_bug.cgi?id=706777
This commit is contained in:
parent
17185452c6
commit
6781709a75
@ -1031,7 +1031,6 @@ meta_background_load_file_finish (MetaBackground *self,
|
|||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
static CoglUserDataKey key;
|
|
||||||
GTask *task;
|
GTask *task;
|
||||||
LoadFileTaskData *task_data;
|
LoadFileTaskData *task_data;
|
||||||
CoglTexture *texture;
|
CoglTexture *texture;
|
||||||
@ -1077,12 +1076,6 @@ meta_background_load_file_finish (MetaBackground *self,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
cogl_object_set_user_data (COGL_OBJECT (texture),
|
|
||||||
&key,
|
|
||||||
g_object_ref (pixbuf),
|
|
||||||
(CoglUserDataDestroyCallback)
|
|
||||||
g_object_unref);
|
|
||||||
|
|
||||||
ensure_pipeline (self);
|
ensure_pipeline (self);
|
||||||
unset_texture (self);
|
unset_texture (self);
|
||||||
set_style (self, task_data->style);
|
set_style (self, task_data->style);
|
||||||
|
Loading…
Reference in New Issue
Block a user