[PATCH] GCC 4.4 compilation & start fix

Bug #337357 reported by Lubomir Rintel
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
Unassigned

Bug Description

One more typing fix for GCC 4.4, and fix a NULL dereference on startup.

I don't really know much about this computers and internets thing, so I don't even marginally understand what happens in the code the second hunk fixes:

- object->klass = c;
     c->cpp_ctor(object);
+ object->klass = c;

What happens when compiled with GCC 4.4 is that the call to cpp_ctor() zeroes the klass in object. (This is the implementation of the cpp_ctor:)

        template <typename T>
        static void invoke_ctor(NRObject *object) {
                new (object) T();
        }

Revision history for this message
Lubomir Rintel (lkundrak) wrote :
nightrow (jb-benoit)
Changed in inkscape:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
ScislaC (scislac) wrote :

Committed in svn rev 21295. Thank you for your contribution!

Changed in inkscape:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.