Free region also if its empty (we're taking ownership now)

This commit is contained in:
Alexander Larsson 2009-02-09 10:35:19 +01:00 committed by Alexander Larsson
parent c35e0e11da
commit f0fb3f450f

View File

@ -2558,7 +2558,10 @@ move_region_on_impl (GdkWindowObject *private,
if ((dx == 0 && dy == 0) ||
gdk_region_empty (region))
return;
{
gdk_region_destroy (region);
return;
}
impl_window = gdk_window_get_impl_window (private);