Commit 0c88fb49 authored by Johannes Schmid's avatar Johannes Schmid Committed by Johannes Schmid

Fixed critical in new splash code

2009-03-04  Johannes Schmid  <jhs@gnome.org>

	* libanjuta/e-splash.c (e_splash_init), (e_splash_set):
	Fixed critical in new splash code

svn path=/trunk/; revision=4827
parent 4ed5bdb3
2009-03-03 Johannes Schmid <jhs@Obelix>
2009-03-04 Johannes Schmid <jhs@gnome.org>
* libanjuta/e-splash.c (e_splash_init), (e_splash_set):
Fixed critical in new splash code
2009-03-03 Johannes Schmid <jhs@gnome.org>
* plugins/file-manager/plugin.c (file_manager_set_default_uri):
Fixed critical when no path is set in preferences
......@@ -97,10 +97,7 @@ e_splash_init (ESplash *splash)
{
ESplashPrivate *priv;
priv = g_new (ESplashPrivate, 1);
priv->splash_image_pixbuf = NULL;
priv->icon_pixbuf = NULL;
priv->title = NULL;
priv = g_new0 (ESplashPrivate, 1);
priv->progressbar_position = 100;
splash->priv = priv;
}
......@@ -282,8 +279,8 @@ e_splash_set (ESplash *splash, GdkPixbuf *icon_pixbuf,
(double) ICON_SIZE / gdk_pixbuf_get_width (icon_pixbuf),
(double) ICON_SIZE / gdk_pixbuf_get_height (icon_pixbuf),
GDK_INTERP_HYPER);
g_object_unref (priv->icon_pixbuf);
if (priv->icon_pixbuf)
g_object_unref (priv->icon_pixbuf);
priv->icon_pixbuf = scaled_pixbuf;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment