Fix coding style issues

This commit is contained in:
FeRD (Frank Dana) 2023-11-26 16:19:06 -05:00
parent 39db73dff1
commit 114d0621aa

View File

@ -68,12 +68,12 @@ G_DEFINE_BOXED_TYPE (GdkRGBA, gdk_rgba,
GdkRGBA * GdkRGBA *
gdk_rgba_new_from_string (const char *spec) gdk_rgba_new_from_string (const char *spec)
{ {
GdkRGBA *out = g_slice_alloc(sizeof(GdkRGBA)); GdkRGBA *out = g_new (GdkRGBA, 1);
if(!out) if (!out)
return NULL; return NULL;
if(gdk_rgba_parse(out, spec)) if (gdk_rgba_parse (out, spec))
return out; return out;
gdk_rgba_free(out); gdk_rgba_free (out);
return NULL; return NULL;
} }