File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1669,6 +1669,7 @@ GtkWidget *
16691669pluma_image_menu_item_new_from_pixbuf (GdkPixbuf * icon_pixbuf ,
16701670 const gchar * label_name )
16711671{
1672+ gchar * concat ;
16721673 GtkWidget * icon ;
16731674 GtkWidget * box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL , 6 );
16741675
@@ -1677,7 +1678,9 @@ pluma_image_menu_item_new_from_pixbuf (GdkPixbuf *icon_pixbuf,
16771678 else
16781679 icon = gtk_image_new ();
16791680
1680- GtkWidget * label_menu = gtk_label_new (g_strconcat (label_name , " " , NULL ));
1681+ concat = g_strconcat (label_name , " " , NULL );
1682+
1683+ GtkWidget * label_menu = gtk_label_new (concat );
16811684 GtkWidget * menuitem = gtk_menu_item_new ();
16821685
16831686 gtk_container_add (GTK_CONTAINER (box ), icon );
@@ -1686,5 +1689,7 @@ pluma_image_menu_item_new_from_pixbuf (GdkPixbuf *icon_pixbuf,
16861689 gtk_container_add (GTK_CONTAINER (menuitem ), box );
16871690 gtk_widget_show_all (menuitem );
16881691
1692+ g_free (concat );
1693+
16891694 return menuitem ;
16901695}
You can’t perform that action at this time.
0 commit comments