Fix a small memleak in window_opacity_get()

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2009-04-13 14:13:34 +02:00 committed by Julien Danjou
parent 1c147a6d76
commit 7b2627cbf9
1 changed files with 3 additions and 1 deletions

View File

@ -143,7 +143,9 @@ window_opacity_get(xcb_window_t win)
if(prop_r->value_len) if(prop_r->value_len)
{ {
unsigned int *data = xcb_get_property_value(prop_r); unsigned int *data = xcb_get_property_value(prop_r);
return (double) *data / (double) 0xffffffff; unsigned int value = *data;
p_delete(&prop_r);
return (double) value / (double) 0xffffffff;
} }
bailout: bailout: