diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2011-03-20 06:42:59 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2011-03-20 06:42:59 +0000 |
| commit | 4e01c64b6094fa1f4bf63ec8a8f77cf21696b711 (patch) | |
| tree | 8d6c7ae3f223f537457c55d3976d269772431eb9 /src/ink-action.cpp | |
| parent | Filters. Fix for Bug #737813 (translucent filter crashes program when resizin... (diff) | |
| download | inkscape-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.cpp | 6 |
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 |
