mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 11:27:49 +00:00
add code to the destructor so we clean up our object
This commit is contained in:
parent
e2685a2157
commit
ecfbc0cc6f
@ -38,7 +38,13 @@ nsGCCache::nsGCCache()
|
||||
|
||||
nsGCCache::~nsGCCache()
|
||||
{
|
||||
|
||||
int i;
|
||||
int maxi = (gc_cache_wrapped_p ? countof(gc_cache) : gc_cache_fp);
|
||||
for (i = 0; i < maxi; i++) {
|
||||
gdk_gc_unref(gc_cache[i].gc);
|
||||
if (gc_cache[i].clipRegion)
|
||||
gdk_region_destroy(gc_cache[i].clipRegion);
|
||||
}
|
||||
}
|
||||
|
||||
GdkRegion *
|
||||
|
Loading…
x
Reference in New Issue
Block a user