Smart Pointer: added eptr support for icalproperty and icalparameter
Needed for code which creates icalproperty or icalparameter and does
not immediately add it to a parent.
(cherry picked from commit bee26ca9f9
)
This commit is contained in:
parent
c58c7ee7d8
commit
590df5ba92
|
@ -74,6 +74,8 @@ class Unref {
|
|||
#endif // HAVE_GLIB
|
||||
#ifdef ENABLE_ICAL
|
||||
static void unref(icalcomponent *pointer) { icalcomponent_free(pointer); }
|
||||
static void unref(icalproperty *pointer) { icalproperty_free(pointer); }
|
||||
static void unref(icalparameter *pointer) { icalparameter_free(pointer); }
|
||||
static void unref(icaltimezone *pointer) { icaltimezone_free(pointer, 1); }
|
||||
#endif // ENABLE_ICAL
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue