From e8d460427dd2147f2d8e7f4d648f4a49a3afaed3 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 19 Jan 2010 17:21:22 -0600 Subject: Protecting our _new a little bit. --- src/application-service-appstore.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3