Skip to content

Commit

Permalink
button: ensure content image is NULL after it is freed
Browse files Browse the repository at this point in the history
  • Loading branch information
thos committed Sep 16, 2013
1 parent 6a43d10 commit 63da1f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mx/mx-button.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ mx_button_style_changed (MxWidget *widget)

if (content_image)
g_boxed_free (MX_TYPE_BORDER_IMAGE, content_image);

priv->content_image = NULL;
}

if (priv->icon_size == 0)
Expand Down

0 comments on commit 63da1f2

Please sign in to comment.