Backport: ee715e2
:: Fix possible memory leak reported by klockwork.
Signed-off-by: Chris Michael <cp.michael@samsung.com> Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
This commit is contained in:
parent
c45ebc84c9
commit
e2dc213609
|
@ -773,8 +773,10 @@ e_smart_monitor_changes_apply(Evas_Object *obj)
|
||||||
|
|
||||||
/* get the outputs for this crtc */
|
/* get the outputs for this crtc */
|
||||||
outputs = ecore_x_randr_crtc_outputs_get(root, sd->crtc.id, &noutputs);
|
outputs = ecore_x_randr_crtc_outputs_get(root, sd->crtc.id, &noutputs);
|
||||||
if ((!outputs) || (noutputs < 1))
|
if (noutputs < 1)
|
||||||
{
|
{
|
||||||
|
free(outputs);
|
||||||
|
|
||||||
if ((outputs = malloc(sizeof(Ecore_X_Randr_Output))))
|
if ((outputs = malloc(sizeof(Ecore_X_Randr_Output))))
|
||||||
{
|
{
|
||||||
outputs[0] = sd->output;
|
outputs[0] = sd->output;
|
||||||
|
|
Loading…
Reference in New Issue