aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-19 17:21:22 -0600
committerTed Gould <ted@gould.cx>2010-01-19 17:21:22 -0600
commite8d460427dd2147f2d8e7f4d648f4a49a3afaed3 (patch)
treedf961424e30e65db1fec749ca76651401d892656
parent08fef8dc585407e88d27da07a7c6fd726303a0dd (diff)
downloadayatana-indicator-application-e8d460427dd2147f2d8e7f4d648f4a49a3afaed3.tar.gz
ayatana-indicator-application-e8d460427dd2147f2d8e7f4d648f4a49a3afaed3.tar.bz2
ayatana-indicator-application-e8d460427dd2147f2d8e7f4d648f4a49a3afaed3.zip
Protecting our _new a little bit.
-rw-r--r--src/application-service-appstore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 2121a0d..e734bdd 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -652,6 +652,7 @@ application_service_appstore_application_remove (ApplicationServiceAppstore * ap
ApplicationServiceAppstore *
application_service_appstore_new (AppLruFile * lrufile)
{
+ g_return_val_if_fail(IS_APP_LRU_FILE(lrufile), NULL);
ApplicationServiceAppstore * appstore = APPLICATION_SERVICE_APPSTORE(g_object_new(APPLICATION_SERVICE_APPSTORE_TYPE, NULL));
ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(appstore);
priv->lrufile = lrufile;