Chain up to parent finalize()
This was forgotten in a few places, which means you have a memory leak (albeit tiny).
This commit is contained in:
parent
e4b1df23a4
commit
f83450cebf
2 changed files with 7 additions and 12 deletions
|
@ -612,6 +612,8 @@ cc_background_xml_finalize (GObject *object)
|
||||||
xml->item_added_id = 0;
|
xml->item_added_id = 0;
|
||||||
}
|
}
|
||||||
g_clear_pointer (&xml->item_added_queue, g_async_queue_unref);
|
g_clear_pointer (&xml->item_added_queue, g_async_queue_unref);
|
||||||
|
|
||||||
|
G_OBJECT_CLASS (cc_background_xml_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -694,18 +694,11 @@ cc_crop_area_finalize (GObject *object)
|
||||||
{
|
{
|
||||||
CcCropArea *area = CC_CROP_AREA (object);
|
CcCropArea *area = CC_CROP_AREA (object);
|
||||||
|
|
||||||
if (area->browse_pixbuf) {
|
g_clear_object (&area->browse_pixbuf);
|
||||||
g_object_unref (area->browse_pixbuf);
|
g_clear_object (&area->pixbuf);
|
||||||
area->browse_pixbuf = NULL;
|
g_clear_object (&area->color_shifted);
|
||||||
}
|
|
||||||
if (area->pixbuf) {
|
G_OBJECT_CLASS (cc_crop_area_parent_class)->finalize (object);
|
||||||
g_object_unref (area->pixbuf);
|
|
||||||
area->pixbuf = NULL;
|
|
||||||
}
|
|
||||||
if (area->color_shifted) {
|
|
||||||
g_object_unref (area->color_shifted);
|
|
||||||
area->color_shifted = NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue