resizor: free the widget on destroy

Plugs a memory leak.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
Pekka Paalanen 2012-01-19 14:21:35 +02:00
parent e156fb681e
commit 84d62dc999

View File

@ -235,6 +235,7 @@ resizor_destroy(struct resizor *resizor)
if (resizor->frame_callback)
wl_callback_destroy(resizor->frame_callback);
widget_destroy(resizor->widget);
window_destroy(resizor->window);
free(resizor);
}