Merge ad8d9031316536e8faa39238790fe2cf8cf5fdb9 into a66f6bb097b60906bd590be0ce13f90474977f66

This commit is contained in:
Nathan Hoad 2014-02-18 00:45:37 +11:00
commit e30e2e3a57

2
bar.c
View File

@ -421,7 +421,6 @@ get_randr_outputs(void)
num = xcb_randr_get_screen_resources_current_outputs_length(rres_reply); num = xcb_randr_get_screen_resources_current_outputs_length(rres_reply);
outputs = xcb_randr_get_screen_resources_current_outputs(rres_reply); outputs = xcb_randr_get_screen_resources_current_outputs(rres_reply);
config_timestamp = rres_reply->config_timestamp; config_timestamp = rres_reply->config_timestamp;
free(rres_reply);
if (num < 1) { if (num < 1) {
fprintf(stderr, "Failed to get current randr outputs\n"); fprintf(stderr, "Failed to get current randr outputs\n");
return; return;
@ -505,6 +504,7 @@ get_randr_outputs(void)
j++; j++;
} }
} }
free(rres_reply);
} }
void void