diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2012-12-13 12:59:43 +0000 |
---|---|---|
committer | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2012-12-13 12:59:43 +0000 |
commit | 4e23dd680e24af8d1ba1c5d23bd6e5c8a4f61763 (patch) | |
tree | d500d3d0fd5ed68cd8e6d3fba600a98405c9b19b /src/bin/e_randr_11.c | |
parent | 7fb5b16ee44cc90c668048e234447d9b3da7f26b (diff) | |
download | enlightenment-4e23dd680e24af8d1ba1c5d23bd6e5c8a4f61763.tar.gz |
fix leak in randr11 refresh rate failure
SVN revision: 80840
Diffstat (limited to 'src/bin/e_randr_11.c')
-rw-r--r-- | src/bin/e_randr_11.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/e_randr_11.c b/src/bin/e_randr_11.c index df5e5a6544..63d31def51 100644 --- a/src/bin/e_randr_11.c +++ b/src/bin/e_randr_11.c @@ -37,7 +37,7 @@ _11_screen_info_new(void) for (i = 0; i < nsizes; i++) { if (!(rates = ecore_x_randr_screen_primary_output_refresh_rates_get(e_randr_screen_info.root, i, &randr_info_11->nrates[i]))) - return EINA_FALSE; + goto _info_11_new_fail; randr_info_11->rates[i] = rates; } randr_info_11->current_rate = ecore_x_randr_screen_primary_output_current_refresh_rate_get(e_randr_screen_info.root); @@ -45,6 +45,7 @@ _11_screen_info_new(void) return randr_info_11; _info_11_new_fail: + free(sizes); free(randr_info_11); return NULL; } |