~ubuntu-branches/ubuntu/jaunty/moon/jaunty

« back to all changes in this revision

Viewing changes to plugin/plugin-class.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-03-06 10:09:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090306100949-pgxjxjqltaxi12rz
Tags: 1.0.1-0ubuntu1
New upstream release (LP: #338665)

Show diffs side-by-side

added added

removed removed

Lines of Context:
697
697
{
698
698
        if (target_object && event_id != -1) {
699
699
                target_object->RemoveHandler (event_id, token);
700
 
                if (callback != NULL)
 
700
                if (is_func && callback) {
701
701
                        NPN_ReleaseObject ((NPObject *) callback);
 
702
                        callback = NULL;
 
703
                }
702
704
        }
703
705
        else {
704
706
                on_handler_removed (this);
2623
2625
                        
2624
2626
                        strval = strbuf;
2625
2627
                } else if (NPVARIANT_IS_DOUBLE (*value)) {
2626
 
                        g_snprintf (strbuf, sizeof (strbuf), "%g", NPVARIANT_TO_DOUBLE (*value));
 
2628
                        g_ascii_dtostr (strbuf, sizeof (strbuf), NPVARIANT_TO_DOUBLE (*value));
2627
2629
                        
2628
2630
                        strval = strbuf;
2629
2631
                } else if (NPVARIANT_IS_STRING (*value)) {