Logo Search packages:      
Sourcecode: inkscape version File versions

Inkscape::Extension::Extension::~Extension ( void   )  [virtual]

Destroys the Extension.

Returns:
none This function frees all of the strings that could be attached to the extension and also unreferences the repr. This is better than freeing it because it may (I wouldn't know why) be referenced in another place.

Todo:
Need to do parameters here

Definition at line 113 of file extension.cpp.

References _deps, name, repr, set_state(), STATE_UNLOADED, and timer.

{
//    printf("Extension Destructor: %s\n", name);
      set_state(STATE_UNLOADED);
      db.unregister_ext(this);
    sp_repr_unref(repr);
    g_free(id);
    g_free(name);
      delete timer;
      timer = NULL;
    /** \todo Need to do parameters here */

      for (unsigned int i = 0 ; i < _deps.size(); i++) {
            delete _deps[i];
      }
      _deps.clear();

    return;
}


Generated by  Doxygen 1.6.0   Back to index