Ejemplo n.º 1
0
void CoordSystem_free(CoordSystem *cs) {
  
  if (cs->name) EcoString_freeStr(ecoSTable, cs->name);
  if (cs->version) EcoString_freeStr(ecoSTable, cs->version);

  free(cs);
}
Ejemplo n.º 2
0
void Clone_free(Clone *clone) {
  Object_decRefCount(clone);

  if (Object_getRefCount(clone) > 0) {
    return;
  } else if (Object_getRefCount(clone) < 0) {
    fprintf(stderr,"Error: Negative reference count for Clone\n"
                   "       Freeing it anyway\n");
  }

  if (clone->name) EcoString_freeStr(ecoSTable, clone->name);
  if (clone->emblAcc) EcoString_freeStr(ecoSTable, clone->emblAcc);

  free(clone);
}
Ejemplo n.º 3
0
void SyntenyRegion_free(SyntenyRegion *sr) {
  Object_decRefCount(sr);

  if (Object_getRefCount(sr) > 0) {
    return;
  } else if (Object_getRefCount(sr) < 0) {
    fprintf(stderr,"Error: Negative reference count for SyntenyRegion\n"
                   "       Freeing it anyway\n");
  }

  if (sr->chrName)    EcoString_freeStr(ecoSTable, sr->chrName);
  if (sr->hitChrName) EcoString_freeStr(ecoSTable, sr->hitChrName);
  if (sr->seqType)    EcoString_freeStr(ecoSTable, sr->seqType);
  if (sr->hitSeqType) EcoString_freeStr(ecoSTable, sr->hitSeqType);

  free(sr);
}
Ejemplo n.º 4
0
void PredictionExon_freeImpl(PredictionExon *pe) {
  Object_decRefCount(pe);

  if (Object_getRefCount(pe) > 0) {
    return;
  } else if (Object_getRefCount(pe) < 0) {
    fprintf(stderr,"Error: Negative reference count for PredictionExon\n"
                   "       Freeing it anyway\n");
  }

  if (pe->displayLabel) EcoString_freeStr(ecoSTable, pe->displayLabel);

  SeqFeature_freePtrs((SeqFeature *)pe);
  free(pe);
}
Ejemplo n.º 5
0
void SimpleFeature_freeImpl(SimpleFeature *sf) {
  Object_decRefCount(sf);

  if (Object_getRefCount(sf) > 0) {
    return;
  } else if (Object_getRefCount(sf) < 0) {
    fprintf(stderr,"Error: Negative reference count for SimpleFeature\n"
                   "       Freeing it anyway\n");
  }

  if (sf->displayLabel) EcoString_freeStr(ecoSTable, sf->displayLabel);

  SeqFeature_freePtrs((SeqFeature *)sf);
  free(sf);
}