st-widget: Remove some potentially dangerous but dead code
We really shouldn't be dereferencing these pointers before checking that they're the thing they really are.
This commit is contained in:
parent
9420174477
commit
14d267c246
@ -989,7 +989,7 @@ void
|
||||
st_widget_set_theme (StWidget *actor,
|
||||
StTheme *theme)
|
||||
{
|
||||
StWidgetPrivate *priv = actor->priv;
|
||||
StWidgetPrivate *priv;
|
||||
|
||||
g_return_if_fail (ST_IS_WIDGET (actor));
|
||||
|
||||
@ -1338,7 +1338,7 @@ void
|
||||
st_widget_set_style (StWidget *actor,
|
||||
const gchar *style)
|
||||
{
|
||||
StWidgetPrivate *priv = actor->priv;
|
||||
StWidgetPrivate *priv;
|
||||
|
||||
g_return_if_fail (ST_IS_WIDGET (actor));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user