Only unref the vbox if it was actually created

This commit is contained in:
Pierre Pronchery 2013-12-19 05:04:23 +01:00
parent 6245dc2076
commit 073d252673

View File

@ -130,6 +130,7 @@ static void _embed_destroy(Embed * embed)
embed);
if(embed->source != 0)
g_source_remove(embed->source);
if(embed->vbox != NULL)
g_object_unref(embed->vbox);
free(embed->widgets);
gtk_widget_destroy(embed->button);