summaryrefslogtreecommitdiffstats
path: root/src/ink-action.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2011-03-20 06:42:59 +0000
committerJon A. Cruz <jon@joncruz.org>2011-03-20 06:42:59 +0000
commit4e01c64b6094fa1f4bf63ec8a8f77cf21696b711 (patch)
tree8d6c7ae3f223f537457c55d3976d269772431eb9 /src/ink-action.cpp
parentFilters. Fix for Bug #737813 (translucent filter crashes program when resizin... (diff)
downloadinkscape-4e01c64b6094fa1f4bf63ec8a8f77cf21696b711.tar.gz
inkscape-4e01c64b6094fa1f4bf63ec8a8f77cf21696b711.zip
Cleaned up memory patch. Fixes bug #737298.
Fixed bugs: - https://launchpad.net/bugs/737298 (bzr r10118)
Diffstat (limited to 'src/ink-action.cpp')
-rw-r--r--src/ink-action.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ink-action.cpp b/src/ink-action.cpp
index d8673a3ab..587efdff0 100644
--- a/src/ink-action.cpp
+++ b/src/ink-action.cpp
@@ -441,9 +441,11 @@ static GtkWidget* ink_toggle_action_create_tool_item( GtkAction* action )
gtk_container_add( GTK_CONTAINER(align), child );
gtk_tool_button_set_icon_widget( button, align );
} else {
- gchar *label;
- g_object_get (G_OBJECT(action), "short_label", &label, NULL);
+ gchar *label = 0;
+ g_object_get( G_OBJECT(action), "short_label", &label, NULL );
gtk_tool_button_set_label( button, label );
+ g_free( label );
+ label = 0;
}
} else {
// For now trigger a warning but don't do anything else