GObject finalize not being called
I've added private data registered a finalize function for my custom GObject in the class_init function, but the finalize function is never being called to allow me to clean up my resources.
Here is the class_init() function:
void mid_platform_svc_class_init(MIDPlatformSvcClass *klass)
GObjectClass* parentClass = G_OBJECT_CLASS(klass);
parentClass->finalize = mid_platform_svc_finalize;
Here is the finalize function:
void mid_platform_svc_finalize(GObject *obj)
MIDPlatformSvc* self = MID_PLATFORM_SVC(obj);
MIDPlatformPrivate* priv = MIDPLATFORMSVC_GET_PRIVATE(self);
Everything compiles (finally!) but the finalize function is never being called. Anyone know what I am missing?
|All times are GMT -5. The time now is 05:18 PM.|