Code

Fix g_free crash
authorjohncoswell <johncoswell@users.sourceforge.net>
Sun, 25 Feb 2007 14:51:00 +0000 (14:51 +0000)
committerjohncoswell <johncoswell@users.sourceforge.net>
Sun, 25 Feb 2007 14:51:00 +0000 (14:51 +0000)
src/flood-context.cpp

index 27df7c3112c248f2beb5d8e51ac6273beb8871c9..88435cfd1e8413401ba5a5c6ede0fd46d02ff337 100644 (file)
@@ -496,12 +496,12 @@ static void sp_flood_do_flood_fill(SPEventContext *event_context, GdkEvent *even
                                       (GdkPixbufDestroyNotify)g_free,
                                       NULL);
 
-    g_free(trace_px);
-
     NR::Matrix inverted_affine = NR::Matrix(affine).inverse();
     
     do_trace(pixbuf, desktop, inverted_affine);
 
+    g_free(trace_px);
+
     sp_document_done(document, SP_VERB_CONTEXT_FLOOD, _("Flood fill"));
 }