pull/374/merge
zmatthias 2 years ago committed by GitHub
commit be39af3cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -117,18 +117,28 @@ GoosePublisher_destroy(GoosePublisher self)
void void
GoosePublisher_setGoID(GoosePublisher self, char* goID) GoosePublisher_setGoID(GoosePublisher self, char* goID)
{ {
if (self->goID != NULL)
GLOBAL_FREEMEM(self->goID);
self->goID = StringUtils_copyString(goID); self->goID = StringUtils_copyString(goID);
} }
void void
GoosePublisher_setGoCbRef(GoosePublisher self, char* goCbRef) GoosePublisher_setGoCbRef(GoosePublisher self, char* goCbRef)
{ {
if (self->goCBRef != NULL)
GLOBAL_FREEMEM(self->goCBRef);
self->goCBRef = StringUtils_copyString(goCbRef); self->goCBRef = StringUtils_copyString(goCbRef);
} }
void void
GoosePublisher_setDataSetRef(GoosePublisher self, char* dataSetRef) GoosePublisher_setDataSetRef(GoosePublisher self, char* dataSetRef)
{ {
if (self->dataSetRef != NULL)
GLOBAL_FREEMEM(self->dataSetRef);
self->dataSetRef = StringUtils_copyString(dataSetRef); self->dataSetRef = StringUtils_copyString(dataSetRef);
} }

Loading…
Cancel
Save