mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
Plug a memory leak
Valgrind reported a leak of regions from gdk_window_process_updates_internal.
This commit is contained in:
parent
05ded28d7d
commit
4581432387
@ -2624,6 +2624,8 @@ gdk_window_end_implicit_paint (GdkWindow *window)
|
||||
/* Reset clip region of the cached GdkGC */
|
||||
gdk_gc_set_clip_region (tmp_gc, NULL);
|
||||
}
|
||||
else
|
||||
gdk_region_destroy (paint->region);
|
||||
|
||||
g_object_unref (paint->pixmap);
|
||||
g_free (paint);
|
||||
|
Loading…
Reference in New Issue
Block a user