summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 71146ab)
raw | patch | inline | side by side (parent: 71146ab)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 19 May 2008 19:04:45 +0000 (19:04 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 19 May 2008 19:04:45 +0000 (19:04 +0000) |
src/draw-anchor.cpp | patch | blob | history |
diff --git a/src/draw-anchor.cpp b/src/draw-anchor.cpp
index b06e94a48f0eccf8429af96ae0ec9e284dd24560..32ee8ca78be02f305cb2618a818a06977d848837 100644 (file)
--- a/src/draw-anchor.cpp
+++ b/src/draw-anchor.cpp
#include "desktop-handles.h"
#include "event-context.h"
#include "display/sodipodi-ctrl.h"
+#include "display/curve.h"
/**
* Creates an anchor object and initializes it.
a->dc = dc;
a->curve = curve;
+ curve->ref();
a->start = start;
a->active = FALSE;
a->dp = delta;
SPDrawAnchor *
sp_draw_anchor_destroy(SPDrawAnchor *anchor)
{
+ if (anchor->curve) {
+ anchor->curve->unref();
+ }
if (anchor->ctrl) {
gtk_object_destroy(GTK_OBJECT(anchor->ctrl));
}