mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -05:00
clutter: Plug leak on error condition
The ClutterContext is leaked if not properly initialized. CID: #1508079 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2061>
This commit is contained in:
parent
c869b92d5d
commit
90ad8b88d4
@ -619,7 +619,10 @@ clutter_context_new (ClutterBackendConstructor backend_constructor,
|
|||||||
clutter_context->last_repaint_id = 1;
|
clutter_context->last_repaint_id = 1;
|
||||||
|
|
||||||
if (!clutter_init_real (clutter_context, error))
|
if (!clutter_init_real (clutter_context, error))
|
||||||
|
{
|
||||||
|
g_free (clutter_context);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
ClutterCntx = clutter_context;
|
ClutterCntx = clutter_context;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user